-
Notifications
You must be signed in to change notification settings - Fork 26
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
Other types of menu items? #173
Comments
Hi there, thanks for the interest in the package! To my knowledge, there should be no accessibility issues with changing the However, there will be complaints from Typescript, as the package is currently only designed to accept |
@corymharper created #174 in response to this. Closing this issue in favor of that one. |
Thanks Wes! Good to close. |
One issue I have seen here is when trying to use a button in place of an anchor tag, any onClick listener is activated twice when using the Enter key. I believe this is because the default behavior of the button already activates the onClick and then this hook is also activating it. Changing the item element to a corrects this.
|
That's a fair point, if we fully roll out support for other kinds of menu items we'll probably have to consider preventing the default behavior and the implications of that. For now, the package still only full supports |
This is a question rather than strictly an issue - apologies if this muddies your issue list!
Love what you've built. I'd like to be able to use this with button components within the menu, not just links in the case of an application menu. Given your knowledge about the accessibility requirements, are there any modifications to the props handed back by this hook that would need to be made to accomplish this from an accessibility standpoint?
Thanks!
The text was updated successfully, but these errors were encountered: