on master help sign in
Fix transparency issue in #210
560f679Evan Czaplicki
runtime/Render/Element.js+2−2
@@ -252,9 +252,9 @@ function updateProps(node, curr, next) {
252 e.style.opacity = props.opacity;
252 e.style.opacity = props.opacity;
253 }
253 }
254 var nextColor = (props.color.ctor === 'Just' ?
254 var nextColor = (props.color.ctor === 'Just' ?
255− extract(props.color._0) : 'transparent');
255+ extract(props.color._0) : '');
256 if (e.style.backgroundColor !== nextColor) {
256 if (e.style.backgroundColor !== nextColor) {
257− e.style.backgroundColor = nextColor;
257+ e.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
258 }
258 }
259 if (props.tag !== currP.tag) { e.id = props.tag; }
259 if (props.tag !== currP.tag) { e.id = props.tag; }
260 if (props.href !== currP.href) {
260 if (props.href !== currP.href) {