Dirk
06/10/2022, 1:44 PMDirk
06/10/2022, 3:45 PMButton {
className = emotion.css.ClassName(classNameButton) {
padding = 0.rem
height = 14.px
lineHeight = important(14.px)
textDecoration = TextDecoration.underline
// .xyz > span {}
Selector("> span")() {
backgroundColor = Color("red")
}
...
}
turansky
06/10/2022, 9:04 PMhow do I represent inheritance structures with emotion?Strings for now
turansky
06/10/2022, 9:05 PM"> span" {
backgroundColor = NamedColor.red
}
Dirk
06/11/2022, 6:08 PMSelector("> span")() {
backgroundColor = Color("red")
}
turansky
06/11/2022, 8:57 PMSelector
will be called inside if you will use String
as receiver