diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt index 8f4c4746a2..56926b2753 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt @@ -33,14 +33,6 @@ fun StyleBuilder.color(value: CSSColorValue) { property("color", value) } -fun StyleBuilder.backgroundColor(value: CSSColorValue) { - property("background-color", value) -} - -fun StyleBuilder.backgroundColor(value: String) { - property("background-color", value) -} - @Suppress("EqualsOrHashCode") class CSSBorder : CSSStyleValue { var width: CSSNumeric? = null diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt new file mode 100644 index 0000000000..9871b8588f --- /dev/null +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt @@ -0,0 +1,14 @@ +/* + * Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers. + * Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file. + */ + +package org.jetbrains.compose.web.css + +fun StyleBuilder.backgroundColor(value: CSSColorValue) { + property("background-color", value) +} + +fun StyleBuilder.backgroundColor(value: String) { + property("background-color", value) +} \ No newline at end of file