Removing hrefs like this is breaks a11y entirely
This commit is contained in:
parent
922d6283f8
commit
ad904de16b
|
@ -139,9 +139,9 @@
|
|||
const loginLink = document.getElementById("login-link");
|
||||
|
||||
if (loginPopup !== null) {
|
||||
loginLink.removeAttribute("href");
|
||||
|
||||
loginLink.onclick = () => {
|
||||
loginLink.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
loginPopup.classList.toggle("open");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue