These are chat archives for japgolly/scalacss

19th
Aug 2015
Julie Pitt
@yakticus
Aug 19 2015 23:29
q for @japgolly : I have found some missing attrs that pertain to SVG elements. I have defined the ones I’m using so far. If I were to PR this, where would you want to see these types of attrs in the package structure?
object SvgCss {
  object fill extends TypedAttr_Color {
    override val attr = Attr.real("fill")
  }

  object stroke extends TypedAttr_Color {
    override val attr = Attr.real("stroke")
  }

  object strokeWidth extends TypedAttrT1[Number] {
    override val attr = Attr.real("stroke-width")
  }

  object strokeOpacity extends TypedAttrT1[Number] {
    override val attr = Attr.real("stroke-opacity")
  }

  val fillRule = Attr.real("fillRule", Transform keys CanIUse.flexbox)
}