Skip to content

Commit

Permalink
chore: aria in the right element
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Nov 8, 2024
1 parent b0a6ddd commit 68afaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/src/Examples/Accessibility/React/MenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ function NodeTypeDropdown({ editor }: { editor: Editor }) {
aria-haspopup="true"
aria-expanded={isOpen}
aria-controls="heading-dropdown"
aria-orientation="vertical"
className={`node-type-dropdown__trigger${isOpen ? ' is-active' : ''}`}
tabIndex={-1}
>
Expand All @@ -74,6 +73,7 @@ function NodeTypeDropdown({ editor }: { editor: Editor }) {
ref={dropdownRef}
id="node-type-dropdown"
role="menu"
aria-orientation="vertical"
className="node-type-dropdown__items"
>
<button
Expand Down

0 comments on commit 68afaf9

Please sign in to comment.