-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
DRAFT - 765-fix: Fix styles active menu item #814
base: main
Are you sure you want to change the base?
Conversation
Lighthouse Report:
|
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.
Keyboard navigation of submenus seems broken to me. First Enter/Space
press redirects the page, second opens the menu
2025-03-15.12-16-29.mp4
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.
setDropdownOpen((prev) => !prev); | ||
} | ||
}; | ||
|
||
const handleEscKeyPress = (e: KeyboardEvent<HTMLElement>) => { | ||
if (e.code === 'Escape') { |
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.
Let's all keys' codes move to constant like KEY_CODES = {ESCAPE: 'Escape', .....}
You could add it here src/core/const/index.ts
What type of PR is this? (select all that apply)
Description
Fixed styles for the active menu item and resolved the Lighthouse issue related to the touch target size of the dropdown arrow.
Related Tickets & Documents
Screenshots, Recordings
Before:
After:
Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?