fix for invisible text in alerts
This commit is contained in:
parent
61404a4c0c
commit
cb5d0f4762
@ -11,7 +11,11 @@
|
|||||||
autoDecay = parseInt(dataDecay, 10);
|
autoDecay = parseInt(dataDecay, 10);
|
||||||
}
|
}
|
||||||
closeEl.classList.add('alert__close');
|
closeEl.classList.add('alert__close');
|
||||||
closeEl.innerText = #{String (messageRender MsgCloseAlert)};
|
// TODO:
|
||||||
|
// Getting rid of the interpolation throws an error somewhere else.
|
||||||
|
// Help please!
|
||||||
|
var tempMessageDELETEME = #{String (messageRender MsgCloseAlert)};
|
||||||
|
closeEl.innerText = tempMessageDELETEME.substr(0, 0);
|
||||||
closeEl.addEventListener('click', function(event) {
|
closeEl.addEventListener('click', function(event) {
|
||||||
alertEl.classList.add('alert--invisible');
|
alertEl.classList.add('alert--invisible');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
margin-left: 80px;
|
margin-left: 80px;
|
||||||
|
max-width: 420px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user