rtfeldman/elm-css

Add content to pseudo element

Offen

#174 geöffnet am 06.10.2016

 (2 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)Elm (198 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (1.259 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

In pseudo elements as :before and / or :after is possible to use content property. Today we have a content property linked with flex. I'd like add a content to :before and :after.

What is the better design for that?

We could reuse the same content and verify the parameter. If the parameter is a String then we use it as a property to pseudo element, but if the parameter is a LengthOrNumberOrAutoOrNoneOrContent than we use it as property to flex.

Another option is to create a new property with another name as contentPseudoElement.

What is the best solution? Have any other?

Contributor Guide