Skip to content

Commit

Permalink
Use the regular color for placeholder text (#2908)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jan 22, 2025
1 parent 0c90259 commit 2b0d27c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-lemons-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup-oss/circuit-ui': patch
---

Removed the Input component's red or yellow placeholder color when invalid or with a warning. Previously, the placeholder text could be confused for a user entered value.
8 changes: 0 additions & 8 deletions packages/circuit-ui/components/Input/Input.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@
box-shadow: inset 0 0 0 1px var(--cui-border-danger);
}

.base[aria-invalid="true"]:not(:focus):not([disabled])::placeholder {
color: var(--cui-fg-danger);
}

.warning {
border: 1px solid var(--cui-border-warning);
}
Expand All @@ -70,10 +66,6 @@
box-shadow: inset 0 0 0 1px var(--cui-border-warning);
}

.warning:not(:focus):not([disabled])::placeholder {
color: var(--cui-fg-warning);
}

/* Disabled */

.base:disabled,
Expand Down

0 comments on commit 2b0d27c

Please sign in to comment.