From 5b5c4ea53bb23748c1d7986d00bf3a82d1a0c48e Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Thu, 15 Jul 2021 00:03:56 +0200 Subject: [PATCH] FIX for arithmetic operations --- .../jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt index 33111adc3c..457edc4a2d 100644 --- a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt +++ b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/StyleBuilder.kt @@ -53,7 +53,7 @@ interface CSSVariables class CSSVariable(val name: String) private inline fun variableValue(variableName: String, fallback: TValue? = null) = - "var(--$variableName${fallback?.let { ", $it" } ?: ""})" + "var(--$variableName${fallback?.let { ", $it" } ?: ""})".unsafeCast() fun CSSVariable.value(fallback: TValue? = null) = variableValue(