From c3496315f52ae90c9c86a2d72dd8690db67dbd04 Mon Sep 17 00:00:00 2001 From: Patrick Sier Date: Tue, 13 Aug 2019 03:40:17 -0500 Subject: Uses Bool instead of Expression for visibility (#51) --- style-generator/src/Decoder.elm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'style-generator/src/Decoder.elm') 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 ) -- cgit v1.2.3