Skip to content

Commit

Permalink
Fix wrong strikethrough CSS rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 26, 2024
1 parent c35aa89 commit c187e30
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ class CssRepresentableVisitor : RenderRepresentableVisitor<String> {

override fun visit(style: TextTransformData.Style) = style.kebabCaseName

override fun visit(decoration: TextTransformData.Decoration) = decoration.kebabCaseName
override fun visit(decoration: TextTransformData.Decoration) =
when (decoration) {
TextTransformData.Decoration.STRIKETHROUGH -> "line-through"
else -> decoration.kebabCaseName
}

override fun visit(case: TextTransformData.Case) = case.kebabCaseName

Expand Down

0 comments on commit c187e30

Please sign in to comment.