Erik
10/16/2022, 2:05 PMStyleSheet
if I have defined a style class val x by style {}
and I want to apply it to a raw selector, e.g. a <button>
, is that possible? For example:
object MyStyleSheet : StyleSheet() {
val x by style {}
init {
"button" by style {
// Here apply class x from above
}
}
}
My use case: define 1 style class for round corners and apply that class to the various elements that I want to style like that. Maybe I need a different approach, I'm open to suggestions.