rtfeldman/elm-css

Add content to pseudo element

开放

#174 创建于 2016年10月6日

 (2 条评论) (8 个反应) (0 位负责人)Elm (198 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (1,259 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南