on master help sign in
Fix transparency issue in #210
commit560f679d8f71e2923a8a7fb7b2fcb86883cf926d authorEvan Czaplicki <info@elm-lang.org> dateFri 16 Aug 2013, 00:07 (13 years ago) parent251c7d7
1 file changed+2−2
runtime/Render/Element.js+2−2
runtime/Render/Element.js+2−2
@@ -252,9 +252,9 @@ function updateProps(node, curr, next) {
252252 e.style.opacity = props.opacity;
253253 }
254254 var nextColor = (props.color.ctor === 'Just' ?
255− extract(props.color._0) : 'transparent');
255+ extract(props.color._0) : '');
256256 if (e.style.backgroundColor !== nextColor) {
257− e.style.backgroundColor = nextColor;
257+ e.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
258258 }
259259 if (props.tag !== currP.tag) { e.id = props.tag; }
260260 if (props.href !== currP.href) {