mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
chore: aria in the right element
This commit is contained in:
parent
378a604daa
commit
2766d6f975
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user