Fix accessibility
This commit is contained in:
parent
4d7d15c3c7
commit
f88410587a
3 changed files with 2 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>`
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ html {
|
|||
|
||||
&:not(:hover) {
|
||||
outline: var(--accent-color) solid 2px;
|
||||
outline-offset: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue