🔖 fix: Announce Bookmark Selection State (#11450)

* fix: bookmarks announce selection state

* chore: address Copilot comments
This commit is contained in:
Dustin Healy 2026-01-21 10:49:50 -08:00 committed by GitHub
parent 828c2b2048
commit 12ec64b988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 40 additions and 12 deletions

View file

@ -148,6 +148,9 @@ const Menu: React.FC<MenuProps> = ({
hideOnClick={item.hideOnClick}
aria-haspopup={item.ariaHasPopup}
aria-controls={item.ariaControls}
aria-label={item.ariaLabel}
aria-checked={item.ariaChecked}
{...(item.ariaChecked !== undefined ? { role: 'menuitemcheckbox' } : {})}
onClick={(event) => {
event.preventDefault();
if (item.onClick) {