Open mrosvik opened 8 months ago
Lagt til Word-fil i Teams
Status 21. March: Draft submitted by Ann-Elisabeth in https://digdir.sharepoint.com/:w:/r/sites/bod-bbo/Delte%20dokumenter/Team%20Designsystem/God%20praksis%20og%20retningslinjer/Komponenter/Dropdown%20menu.docx?d=w1525b670ad4548dba699ffd51fef9807&csf=1&web=1&e=cqjbsb
I'll wait with this until https://github.com/digdir/designsystemet/issues/2288 is closed
...and document why we do not use
role="menu"
+ keyboard navigation (spoiler: this is a not very common UU pattern, so users will not be confused by an implementation without, and it would make the Dropdown and the surrounding trigger-buttons quite restricted in usage as it requires specific roles and keyboard bindings to all children and trigger-siblings, see https://www.w3.org/WAI/ARIA/apg/patterns/menubar/)