Skip to content

Commit

Permalink
BlockDraggable: Remove invalid aria-hidden attribute from button (#64228
Browse files Browse the repository at this point in the history
)

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people committed Aug 5, 2024
1 parent 9a3d12a commit 3f7611a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function BlockMover( {
<Button
icon={ dragHandle }
className="block-editor-block-mover__drag-handle"
aria-hidden="true"
label={ __( 'Drag' ) }
// Should not be able to tab to drag handle as this
// button can only be used with a pointer device.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ function BlockSelectionButton( { clientId, rootClientId }, ref ) {
<Button
icon={ dragHandle }
className="block-selection-button_drag-handle"
aria-hidden="true"
label={ dragHandleLabel }
// Should not be able to tab to drag handle as this
// button can only be used with a pointer device.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export default function ZoomOutToolbar( { clientId, rootClientId } ) {
<Button
icon={ dragHandle }
className="block-selection-button_drag-handle zoom-out-toolbar-button"
aria-hidden="true"
label={ __( 'Drag' ) }
iconSize={ 24 }
size="compact"
Expand Down

0 comments on commit 3f7611a

Please sign in to comment.