-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Audit focusableWhenDisabled
#656
Comments
focusableWhenDisabled
from Menu.Trigger
focusableWhenDisabled
We decided at one point to allow menuitems and other components that are inside widgets (following on ARIA guidelines), to remain focusable when disabled. But other standalone components would not be focusable when disabled. |
Hi @michaldudak, good morning! I’ve been following this issue and have already begun working on it. I’m planning to open a draft PR later today. Apologies for not informing you sooner—please let me know if you’d prefer me to proceed with the PR or if you’d like to take it forward instead. I’m happy with either approach. Thanks, and I look forward to your guidance! cc: @vladmoroz |
@onehanddev feel free to continue with the PR. Our current idea for this is:
|
@michaldudak Thanks for the detailed information on this issue. I have a quick question regarding point 1. You mentioned that radio buttons should be focusable when disabled, but the default behaviour of radio buttons doesn’t allow for that functionality. When we focus on a single radio button, it automatically selects the option. Did you mean that we should be able to focus on a radio group when it’s disabled? |
I was wondering, if we allow focus on a disabled ‘Tab’, what content should be displayed beneath it? Should it show the content from the previously selected tab, or should there be no content at all? If there is no content, would that cause a layout shift issue? Is it okay if I start by creating a small PR for changes that don’t require much thought, such as:
|
- Removed focusableWhenDisabled from Menu trigger - Passed down disabled prop to the component renderer to enable the disabled state to the DOM element
This reverts commit dd6b148.
This reverts commit cc20541.
Could you please review the PR at this link? I plan to work on components with roving tabindexes in a separate PR once I gain a clearer understanding of how to approach it (please refer to my earlier comments). I would appreciate any suggestions or feedback regarding my work, as this is my first time contributing to open source, and I want to ensure I’m on the right track. Thank you! |
Hi! Good point about radio buttons and tabs in the |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
focusableWhenDisabled
from Menu.TriggerSwitch
andCheckbox
aren't focusable when disabledThe text was updated successfully, but these errors were encountered: