These are chat archives for japgolly/scalacss

Apr 2016
Patrick Walsh
Apr 16 2016 19:24
I thought I had a good handle on scalacss, but I'm stumped on a probably minor usage point: how do I specify small caps? I would expect to be able to do fontVariant.smallCaps, but smallCaps is defined on fontVariantCaps. Using style(fontVariantCaps.smallCaps) produces css of font-variant-caps: small-caps;, which isn't valid css.
I do have a workaround where I currently do this:
  val caps = style(fontVariant := fontVariantCaps.smallCaps.value)
but that's ugly and I'm sure not the right approach.
any pointers?