Browse Source

Revert "CSSStyleVariable is a value class"

This reverts commit 64f3f0d5b1.
CSS_CASTS
Shagen Ogandzhanian 3 years ago
parent
commit
cc054e16bb
  1. 2
      web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt

2
web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt

@ -61,7 +61,7 @@ interface CSSVariable {
val name: String val name: String
} }
value class CSSStyleVariable<out TValue: StylePropertyValue>(override val name: String) : CSSVariable class CSSStyleVariable<out TValue: StylePropertyValue>(override val name: String) : CSSVariable
fun <TValue: StylePropertyValue> CSSStyleVariable<TValue>.value(fallback: TValue? = null) = fun <TValue: StylePropertyValue> CSSStyleVariable<TValue>.value(fallback: TValue? = null) =
CSSVariableValue<TValue>( CSSVariableValue<TValue>(

Loading…
Cancel
Save