You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current PR which I have raised is focusable by default when disabled, attaching a screen recording.
This is because of the use of aria-disabled native attribute attached on the input element.
Are we looking to change the attribute to disabled when accessibleWhenDisabled is false and aria-disabled when accessibleWhenDisabled is set to true. This way more control would be given to the developers using this props. We can have the defaults set as per the requirement and as per the Button component's default behaviour to have consistency across components.
Working on a client site today I found that the CheckboxControl did not have a disabled state and I found this issue. I looked at the PR and I think it would be a great addition!
Activity
im3dabasia commentedon Mar 26, 2025
I'll work on this issue.
ciampo commentedon Jun 5, 2025
Should we call this prop
accessibleWhenDisabledfor better consistency with theButtonprop?im3dabasia commentedon Jun 6, 2025
Thanks @ciampo for the point.
The current PR which I have raised is focusable by default when disabled, attaching a screen recording.
This is because of the use of
aria-disablednative attribute attached on theinputelement.Are we looking to change the attribute to
disabledwhenaccessibleWhenDisabledis false andaria-disabledwhenaccessibleWhenDisabledis set to true. This way more control would be given to the developers using this props. We can have the defaults set as per the requirement and as per the Button component's default behaviour to have consistency across components.Screen.Recording.2025-03-27.at.3.23.01.PM.mov
mikeyarce commentedon Jul 4, 2025
Working on a client site today I found that the
CheckboxControldid not have a disabled state and I found this issue. I looked at the PR and I think it would be a great addition!mirka commentedon Apr 16, 2026
Closed by #77132