Skip to content

Commit

Permalink
Fix #7045: MenuItem remove aria-hidden (#7562)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 3, 2025
1 parent 99be44f commit ba44811
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion components/lib/contextmenu/ContextMenuSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export const ContextMenuSub = React.memo(
const actionProps = mergeProps(
{
href: item.url || '#',
'aria-hidden': true,
tabIndex: -1,
className: cx('action', { item }),
target: item.target
Expand Down
1 change: 0 additions & 1 deletion components/lib/dock/Dock.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export const Dock = React.memo(
href: url || '#',
onFocus: (event) => event.stopPropagation(),
className: cx('action', { disabled }),
'aria-hidden': 'true',
tabIndex: -1,
target,
'data-pr-tooltip': label,
Expand Down
3 changes: 1 addition & 2 deletions components/lib/megamenu/MegaMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,7 @@ export const MegaMenu = React.memo(
href: item.url || '#',
className: cx('action', { item }),
target: item.target,
tabIndex: '-1',
'aria-hidden': true
tabIndex: '-1'
},
getPTOptions(processedItem, 'action', index)
);
Expand Down
1 change: 0 additions & 1 deletion components/lib/menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ export const Menu = React.memo(
target: item.target,
tabIndex: '-1',
'aria-label': item.label,
'aria-hidden': true,
'aria-disabled': item.disabled,
'data-p-disabled': item.disabled
},
Expand Down
1 change: 0 additions & 1 deletion components/lib/menubar/MenubarSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export const MenubarSub = React.memo(
{
href: item.url || '#',
tabIndex: '-1',
'aria-hidden': 'true',
className: cx('action', { disabled }),
onFocus: (event) => event.stopPropagation(),
target: getItemProp(processedItem, 'target'),
Expand Down
3 changes: 1 addition & 2 deletions components/lib/panelmenu/PanelMenuSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ export const PanelMenuSub = React.memo(
className: cx('action', { item }),
target: item.target,
onFocus: (event) => event.stopPropagation(),
tabIndex: '-1',
'aria-hidden': true
tabIndex: '-1'
},
getPTOptions(processedItem, 'action', index)
);
Expand Down
1 change: 0 additions & 1 deletion components/lib/tieredmenu/TieredMenuSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ export const TieredMenuSub = React.memo(
const actionProps = mergeProps(
{
href: url || '#',
'aria-hidden': true,
tabIndex: '-1',
onFocus: (event) => event.stopPropagation(),
className: cx('action'),
Expand Down

0 comments on commit ba44811

Please sign in to comment.