Adrian Roselli on Nostr: Tip: Firefox gives placeholder text an opacity of .54 (so black text passes WCAG ...
Tip: Firefox gives placeholder text an opacity of .54 (so black text passes WCAG contrast checks at 4.5:1 with #767676).
Which means if you use placeholder and you choose to set a color, you need to also set opacity:
```
::placeholder {
opacity: 1;
color: #777391;
}
```
Alternatively (and preferably), never use placeholder text.
Which means if you use placeholder and you choose to set a color, you need to also set opacity:
```
::placeholder {
opacity: 1;
color: #777391;
}
```
Alternatively (and preferably), never use placeholder text.