Disabled links are focusable #4903
-
It looks like keeping the links focusable even if they are disabled is an expected behaviour. It makes sense but is there any documentation/guideline based on which this decision was taken because for other disabled components like button, focus is not allowed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I can't find any recorded hard guidelines or discussions the team may have had regarding this from years past, but for buttons we followed the native behavior where disabled buttons aren't focusable. Native links don't have the same kind of disabled support so we didn't have the same kind of precedence to follow there. One thing to note for the disabled link case would be that a disabled link would be almost indistinguishable from text if it wasn't focusable and didn't have any additional styling so there is some merit there in making them focusable while disabled. |
Beta Was this translation helpful? Give feedback.
Relevant issues around disabled+focus:
#3662
#1696