Skip to content

Commit

Permalink
Fix typo in CSS API madiaMaxHeight => mediaMaxHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
Schahen committed Aug 3, 2021
1 parent e026b5f commit a9f3f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMinHeight(value: CSSUnitV
/**
* See [mediaMinWidth]
*/
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.madiaMaxHeight(value: CSSUnitValue) =
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxHeight(value: CSSUnitValue) =
CSSMediaQuery.MediaFeature("max-height", value)
4 changes: 2 additions & 2 deletions web/core/src/jsTest/kotlin/MediaQueryTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)) {}
}
}

Expand Down

0 comments on commit a9f3f4f

Please sign in to comment.