Browse Source

Fix typo in CSS API madiaMaxHeight => mediaMaxHeight

pull/988/head
Shagen Ogandzhanian 3 years ago
parent
commit
a9f3f4f01c
  1. 2
      web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt
  2. 4
      web/core/src/jsTest/kotlin/MediaQueryTests.kt

2
web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt

@ -156,5 +156,5 @@ fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMinHeight(value: CSSUnitV
/** /**
* See [mediaMinWidth] * See [mediaMinWidth]
*/ */
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.madiaMaxHeight(value: CSSUnitValue) = fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxHeight(value: CSSUnitValue) =
CSSMediaQuery.MediaFeature("max-height", value) CSSMediaQuery.MediaFeature("max-height", value)

4
web/core/src/jsTest/kotlin/MediaQueryTests.kt

@ -8,7 +8,7 @@ package org.jetbrains.compose.web.core.tests
import org.jetbrains.compose.web.css.CSSMediaRuleDeclaration import org.jetbrains.compose.web.css.CSSMediaRuleDeclaration
import org.jetbrains.compose.web.css.StyleSheet import org.jetbrains.compose.web.css.StyleSheet
import org.jetbrains.compose.web.css.and import org.jetbrains.compose.web.css.and
import org.jetbrains.compose.web.css.madiaMaxHeight import org.jetbrains.compose.web.css.mediaMaxHeight
import org.jetbrains.compose.web.css.mediaMaxWidth import org.jetbrains.compose.web.css.mediaMaxWidth
import org.jetbrains.compose.web.css.media import org.jetbrains.compose.web.css.media
import org.jetbrains.compose.web.css.mediaMinHeight import org.jetbrains.compose.web.css.mediaMinHeight
@ -34,7 +34,7 @@ class MediaQueryTests {
media(mediaMinWidth(200.px)) {} media(mediaMinWidth(200.px)) {}
media(mediaMinHeight(300.px)) {} media(mediaMinHeight(300.px)) {}
media(mediaMaxWidth(500.px)) {} media(mediaMaxWidth(500.px)) {}
media(madiaMaxHeight(600.px)) {} media(mediaMaxHeight(600.px)) {}
} }
} }

Loading…
Cancel
Save