-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/1562 menu button submenu a11y #1777
base: main
Are you sure you want to change the base?
Conversation
…ing' into fix/1562-menu-button-submenu-a11y
@@ -74,6 +87,15 @@ export const Basic: Story = { | |||
} | |||
}; | |||
|
|||
export const Bold: Story = { | |||
args: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emphasis: 'bold' should be set in the story, right?
@@ -83,7 +83,7 @@ export class MenuButton extends ObserveAttributesMixin(ScopedElementsMixin(LitEl | |||
|
|||
this.setAttributesTarget(this.button); | |||
|
|||
this.button.setAttribute('aria-details', this.menu.id); | |||
this.button.setAttribute('aria-controls', this.menu.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also update the documentation?
@@ -99,6 +99,7 @@ export class MenuButton extends ObserveAttributesMixin(ScopedElementsMixin(LitEl | |||
@keydown=${this.#onKeydown} | |||
?disabled=${this.disabled} | |||
aria-expanded="false" | |||
aria-haspopup="menu" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also update the documentation?
this.role = this.selectable ? selectMode : 'menuitem'; | ||
} | ||
if (changes.has('selected')) { | ||
this.setAttribute('aria-checked', (this.selected || false).toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also update the documentation?
No description provided.