Skip to content

Commit

Permalink
Fix accessibility linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Fusco <[email protected]>
  • Loading branch information
josephfusco committed Aug 31, 2023
1 parent 0228791 commit 85ec9bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/faustwp-core/src/components/Toolbar/ToolbarNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ export function ToolbarNode({

return (
<li
role="menuitem"
aria-haspopup="true"
aria-expanded={hover}
id={wpAdminBar(id)}
className={className('menupop', { hover }, additionalClassNames)}
onMouseEnter={() => setHover(true)}
onMouseLeave={() => setHover(false)}
onKeyDown={handleKeyDown}
aria-haspopup="true"
aria-expanded={hover}
{...props}>
{children}
</li>
Expand Down

0 comments on commit 85ec9bb

Please sign in to comment.