Fix accessibility

This commit is contained in:
schmelczerandras 2020-11-18 23:41:12 +01:00
parent 4d7d15c3c7
commit f88410587a
3 changed files with 2 additions and 5 deletions

View file

@ -20,9 +20,7 @@ const addSupportForTabNavigation = () =>
});
const removeUnnecessaryOutlines = () =>
(document.onclick = e => {
(e.target as HTMLElement)?.blur();
});
(document.onclick = e => (e.target as HTMLElement)?.blur());
create();
addSupportForTabNavigation();

View file

@ -22,7 +22,7 @@ export const generate = (
${
more
? `
<div class="info-button">
<div tabindex=0 class="info-button">
<div class="svgContainer">${info}</div>
<p>${showMore}</p>
</div>`

View file

@ -25,7 +25,6 @@ html {
&:not(:hover) {
outline: var(--accent-color) solid 2px;
outline-offset: 4px;
}
}