aboutsummaryrefslogtreecommitdiffstats
path: root/style-generator/src/Decoder.elm
diff options
context:
space:
mode:
Diffstat (limited to 'style-generator/src/Decoder.elm')
-rw-r--r--style-generator/src/Decoder.elm3
1 files changed, 3 insertions, 0 deletions
diff --git a/style-generator/src/Decoder.elm b/style-generator/src/Decoder.elm
index 1df0a73..ce18306 100644
--- a/style-generator/src/Decoder.elm
+++ b/style-generator/src/Decoder.elm
@@ -194,6 +194,9 @@ decodeAttrs =
"filter" ->
decodeAttr "filter" (D.oneOf [ Decoder.Legacy.filter, Decode.expression ]) attrValue
+ "visibility" ->
+ decodeAttr "visible" (D.map ((==) "visible" >> bool) D.string) attrValue
+
other ->
decodeAttr (toCamelCaseLower attrName) Decode.expression attrValue
)