Make Button and ItemGroup 'Item as a button` focus indication consistent #67747
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
Splitting this out from #67513 (comment)
The Button component uses :focus for the focus state, so that the focus style is shown also when using the mouse.
Instead, when the ItemGroup item is rendered as a button via the
as
prop, it uses :focus-visible so that the focus style is supposed to be shown only when using the keyboard.As such, the focus indication behavior is inconsistent. I'd tend to think all the components from the
components
package should use a consistend focus indication behavior.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: