highlighting button when clicked #2507
-
if you click on the primary button on below link, it will get highlighted. I have seen it in the Twilio console as well. I was curious to know what’s the thought process behind it. I felt tab focus would be a good candidate to highlight while navigation rather than on click. Also, the Aria functionality and tab order navigation between the components are not consistent. https://paste.twilio.design/patterns/button-vs-anchor/#buttons |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @aratn! The Button component has a focused state after being clicked For the the Aria functionality and tab order- could you be more specific about where this is the case (is it in a product experience, our docs, the components themselves?) and what the inconsistency is? All these details will be really helpful to make sure we're addressing your concern. Feel free to include screenshots or other visuals if they're relevant! |
Beta Was this translation helpful? Give feedback.
Hi @aratn! The Button component has a focused state after being clicked
in the example since the onClick for the example doesn't have any other functionality (in a product experience, that wouldn't be the case).(Edited: wanted to clarify here that clicking a button puts it in focus in every case). Button has the same focused state when it is tabbed into as well (darker background and focus ring). Could you specify where this behavior is not the case? You mentioned Console, but where specifically in Console?For the the Aria functionality and tab order- could you be more specific about where this is the case (is it in a product experience, our docs, the components themselves?) and what th…