chore: aria in the right element

This commit is contained in:
Nick the Sick 2024-11-08 16:10:55 +01:00
parent 378a604daa
commit 2766d6f975
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC

View File

@ -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}
>
@ -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