From a9f3f4f01c4554dbb65ecc6145e7536298d4872a Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Tue, 3 Aug 2021 15:39:38 +0200 Subject: [PATCH] Fix typo in CSS API madiaMaxHeight => mediaMaxHeight --- .../kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt | 2 +- web/core/src/jsTest/kotlin/MediaQueryTests.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt index ee038eec93..24fd0e4f31 100644 --- a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt +++ b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt @@ -156,5 +156,5 @@ fun GenericStyleSheetBuilder.mediaMinHeight(value: CSSUnitV /** * See [mediaMinWidth] */ -fun GenericStyleSheetBuilder.madiaMaxHeight(value: CSSUnitValue) = +fun GenericStyleSheetBuilder.mediaMaxHeight(value: CSSUnitValue) = CSSMediaQuery.MediaFeature("max-height", value) diff --git a/web/core/src/jsTest/kotlin/MediaQueryTests.kt b/web/core/src/jsTest/kotlin/MediaQueryTests.kt index 79b896f743..6d4831c6e9 100644 --- a/web/core/src/jsTest/kotlin/MediaQueryTests.kt +++ b/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.StyleSheet 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.media import org.jetbrains.compose.web.css.mediaMinHeight @@ -34,7 +34,7 @@ class MediaQueryTests { media(mediaMinWidth(200.px)) {} media(mediaMinHeight(300.px)) {} media(mediaMaxWidth(500.px)) {} - media(madiaMaxHeight(600.px)) {} + media(mediaMaxHeight(600.px)) {} } }