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
I'm not sure this is expected behavior for tags. If you really want something so interactive that it can be focussed and clicked via the keyboard, you probably want a minimal or outlined button instead. I don't think your requested feature exists in other design toolkits like Bootstrap or Ant (tags are not even focussable by default in Ant).
I'm not sure this is expected behavior for tags. If you really want something so interactive that it can be focussed and clicked via the keyboard, you probably want a minimal or outlined button instead. I don't think your requested feature exists in other design toolkits like Bootstrap or Ant (tags are not even focussable by default in Ant).
"so interactive that ..." seems to indicate levels of interactivity, I think it's a binary thing. Either an element is interactive and it should be accessible by keyboard users, or it's not interactive and doesn't need to receive focus/be triggered by keyboard.
I'd support Tags not accepting the onClick prop/no interactive style but that sounds like a large breaking change, but don't think that's a reason for Tags to stay in a state of partial support for interactivity.
I don't need an immediate solution but thought raising this would be helpful to track accessibility of Blueprint components, particularly if the issue sees other activity. Perhaps a "Domain: accessibility" label is appropriate here.
Code Sandbox
https://codesandbox.io/s/palantir-blueprint-forked-s0reo
Steps to reproduce
Button
included to show expected behaviorActual behavior
onClick
ofTag
does not fire with spacebar or enter press when focusedExpected behavior
spacebar/enter should trigger
onClick
ofTag
Possible solution
if
Tag
hasonClick
defined, render as a button but with theTag
stylesThe text was updated successfully, but these errors were encountered: