-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the div an anchor #711
Make the div an anchor #711
Conversation
Thanks for opening a PR. I think it should be an anchor then, to match the rest of our buttons and avoid button-specific behavior and styling from browsers. |
Swapped for an anchor! |
thankYouBackButton.addEventListener('keypress', (event) => { | ||
// Support button enter and space interactions | ||
switch (event.code.toUpperCase()) { | ||
case "ENTER": | ||
case "SPACE": | ||
thankYouWrapper.style.display = 'none'; | ||
break; | ||
default: | ||
break; | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? Pressing enter already activates the link. Pressing space scrolls the page, but that's normal for web.
Sorry for the delay! The layout change seems good to me, but I'm not sure about the added code. |
Superseded by 2167a80. |
Downloaded the engine keyboard only, I was unable to close the modal. Swapped the div out for a button and made it transparent to be a little more accessible