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

Loading…
Cancel
Save