rtfeldman / elm-css

Typed CSS in Elm.
https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
BSD 3-Clause "New" or "Revised" License
1.23k stars 196 forks source link

Add `placeholder` pseudo-element #548

Open dzuk-mutant opened 2 years ago

dzuk-mutant commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder

While the MDN article mentions there are accessibility concerns in using this, as long as you understand the constraints and work with/counteract default browser styling it can be a useful part of designing inputs IMO.

If this would be an obstacle to including it in elm-css, perhaps the docs can mention that it's something that designers need to be aware of these sorts of issues if they want to use it.

dzuk-mutant commented 2 years ago

(In case this isn't fixed by the time someone who has control of repo sees it, GitHub seems to be having a bug with dummy email addresses right now, so the commits in this PR have been tagged as being made by a user who is not me but happened to use the same dummy email in the past. This is not intentional, I do not have control of that GitHub account 😓)