Skip to content

Commit 2b0d27c

Browse files
authored
Use the regular color for placeholder text (#2908)
1 parent 0c90259 commit 2b0d27c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.changeset/cuddly-lemons-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sumup-oss/circuit-ui': patch
3+
---
4+
5+
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.

packages/circuit-ui/components/Input/Input.module.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
box-shadow: inset 0 0 0 1px var(--cui-border-danger);
5454
}
5555

56-
.base[aria-invalid="true"]:not(:focus):not([disabled])::placeholder {
57-
color: var(--cui-fg-danger);
58-
}
59-
6056
.warning {
6157
border: 1px solid var(--cui-border-warning);
6258
}
@@ -70,10 +66,6 @@
7066
box-shadow: inset 0 0 0 1px var(--cui-border-warning);
7167
}
7268

73-
.warning:not(:focus):not([disabled])::placeholder {
74-
color: var(--cui-fg-warning);
75-
}
76-
7769
/* Disabled */
7870

7971
.base:disabled,

0 commit comments

Comments
 (0)