Skip to content

Commit

Permalink
Replacing focusable with accessibleWhenDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hayward committed Nov 20, 2023
1 parent c7a92f5 commit d726e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/block-editor/src/components/inserter-listbox/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function InserterListboxItem(
<CompositeItem
ref={ ref }
role="option"
// Use the CompositeItem `focusable` prop over Button's
// isFocusable. The latter was shown to cause an issue
// with tab order in the inserter list.
focusable
// Use the CompositeItem `accessibleWhenDisabled` prop
// over Button's `isFocusable`. The latter was shown to
// cause an issue with tab order in the inserter list.
accessibleWhenDisabled
{ ...props }
render={ ( htmlProps ) => {
const propsWithTabIndex = {
Expand Down

0 comments on commit d726e73

Please sign in to comment.