fix for invisible text in alerts

This commit is contained in:
Felix Hamann 2018-07-08 20:30:19 +02:00
parent 61404a4c0c
commit cb5d0f4762
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,11 @@
autoDecay = parseInt(dataDecay, 10);
}
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) {
alertEl.classList.add('alert--invisible');
});

View File

@ -72,6 +72,7 @@
.alert {
margin-left: 80px;
max-width: 420px;
}
}