Skip to content
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

Conversation

LukeHendrick
Copy link

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

@YuriSizov
Copy link
Contributor

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.

@Calinou Calinou added bug topic:theme Issues and PRs related to styling and scripts of the frontend labels Sep 20, 2023
@LukeHendrick
Copy link
Author

Swapped for an anchor!

@LukeHendrick LukeHendrick changed the title Make the div a transparent button Make the div an anchor Sep 21, 2023
Comment on lines +333 to +343
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;
}
});
Copy link
Contributor

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.

@YuriSizov
Copy link
Contributor

Sorry for the delay! The layout change seems good to me, but I'm not sure about the added code.

@coppolaemilio
Copy link
Member

Superseded by 2167a80.
Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic:theme Issues and PRs related to styling and scripts of the frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants