diff --git a/html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt b/html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt index 4d0d74ac574..d92d0e0f3e0 100644 --- a/html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt +++ b/html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt @@ -41,6 +41,14 @@ fun AttrsScope.fillRule(fill: String) { attr("fill-rule", fill) } +fun AttrsScope.fillOpacity(fill: Number) { + attr("fill-opacity", fill.toString()) +} + +fun AttrsScope.fillOpacity(fill: CSSPercentageValue) { + attr("fill-opacity", fill.toString()) +} + fun AttrsScope.href(href: String) { attr("href", href) }