From 7806156f4b191b3beba09568182005b2b2400e6a Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 7 Jul 2021 15:15:29 +0200 Subject: [PATCH] Moving background --- .../androidx/compose/web/css/CSSProperties.kt | 8 -------- .../compose/web/css/properties/background.kt | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt 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