These are chat archives for japgolly/scalacss

21st
Jun 2016
Rahel Lüthy
@netzwerg
Jun 21 2016 13:58

Quick question regarding style composition:

val button = style(
  addClassName("btn")
)

val defaultButton = style(
  button,
  addClassName("btn-default")
)

If I use defaultButton like this:

<.button(css.defaultButton, ^.onClick --> generatePdf(), "Generate PDF")

My element only has the "btn-default" class set – what am I missing?

Tia!