Browse Source

Style is not inlined

FUN_INTERFACE
Shagen Ogandzhanian 3 years ago
parent
commit
1b62ce83d6
  1. 8
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt

8
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt

@ -16,8 +16,8 @@ import org.jetbrains.compose.web.css.*
* @param rulesBuild allows to define the style rules using [StyleSheetBuilder]
*/
@Composable
inline fun Style(
crossinline applyAttrs: AttrsBuilder<HTMLStyleElement>.() -> Unit = {},
fun Style(
applyAttrs: AttrsBuilder<HTMLStyleElement>.() -> Unit = {},
rulesBuild: StyleSheetBuilder.() -> Unit
) {
val builder = StyleSheetBuilderImpl()
@ -32,8 +32,8 @@ inline fun Style(
* Usually, it's [org.jetbrains.compose.web.css.StyleSheet] instance
*/
@Composable
inline fun Style(
crossinline applyAttrs: AttrsBuilder<HTMLStyleElement>.() -> Unit = {},
fun Style(
applyAttrs: AttrsBuilder<HTMLStyleElement>.() -> Unit = {},
cssRules: CSSRuleDeclarationList
) {
TagElement(

Loading…
Cancel
Save