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

Menu Button: do not show keyboard focus indicator if activated with mouse or touch #1296

Closed
ianmcburnie opened this issue Jan 5, 2021 · 2 comments

Comments

@ianmcburnie
Copy link
Contributor

ianmcburnie commented Jan 5, 2021

Feature Request

Description

The visible keyboard focus indicator is not necessary for mouse-only or touch-only users. We should show it only when we are sure mouse or touch is being used. We also need to be aware of multi-input scenarios, where user might open menu with a mouse click then reach for keyboard to change menu item selection (in this case we would need to make the indicator visible).

Note: we still need to move focus onto the first item (for screen reader purposes), we are just hiding the outline/indicator.

Related

If we are okay with not supporting IE & Safari, we could go with a pure CSS approach.

Screen Shot 2021-01-05 at 2 55 27 PM

Context

If we find a successful approach, we can apply it to other components

Screenshots

Example of menu button opening with keyboard visible on first item.

Screen Shot 2021-01-05 at 1 40 52 PM

@ianmcburnie
Copy link
Contributor Author

This will be handled on the skin side: eBay/skin#1332

We have decided for the time being to not use a JavaScript. polyfill for Safari & IE11.

@ianmcburnie
Copy link
Contributor Author

Note: this change applies to ALL components. Not just menu button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant