Skip to content

Commit

Permalink
kotlin-css is missing text-shadow #2582
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonya committed Oct 17, 2024
1 parent e624b8b commit cfa70dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ var StyledElement.boxShadow by CssProperty { BoxShadows() }
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.textAlign: TextAlign by CssProperty()
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.textDecoration: TextDecoration by CssProperty()
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.textOverflow: TextOverflow by CssProperty()
var StyledElement.textShadow by CssProperty { TextShadows() }
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.textTransform: TextTransform by CssProperty()
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.textWrap: TextWrap by CssProperty()
@get:Deprecated("Write-only property", level = DeprecationLevel.HIDDEN) var StyledElement.top: LinearDimension by CssProperty()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package kotlinx.css.properties

import kotlinx.css.*

open class TextShadow(
color: Color = Color.currentColor,
offsetX: LinearDimension = 0.px,
offsetY: LinearDimension = 0.px,
blurRadius: LinearDimension = 0.px,
spreadRadius: LinearDimension = 0.px,
) : CssValue("$offsetX $offsetY $blurRadius $spreadRadius $color")

class TextShadows : StyleList<TextShadow>(", ") {
companion object {
val none = TextShadows()
}
}

0 comments on commit cfa70dc

Please sign in to comment.