chore: fixing issue with the microsite banner positioning

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-09-07 15:58:07 +02:00
parent b8b2d4ab04
commit 38d4f9a8cf
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1086,11 +1086,15 @@ code {
display: flex;
}
.Banner--hidden {
.Banner--hiding {
opacity: 0;
transition: opacity 200ms ease-in-out;
}
.Banner--hidden {
display: none;
}
.Banner a {
color: #000;
text-decoration: underline;
+1 -1
View File
@@ -10,7 +10,7 @@ window.addEventListener('DOMContentLoaded', () => {
const dismissButton = banner.querySelector('[data-banner-dismiss]');
if (dismissButton) {
dismissButton.addEventListener('click', () => {
banner.classList.add('Banner--hidden');
banner.classList.add('Banner--hiding');
localStorage.setItem(storageKey, 'true');
});
}