Skip to content
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

Open
wants to merge 187 commits into
base: main
Choose a base branch
from

Conversation

Diaan
Copy link
Collaborator

@Diaan Diaan commented Feb 5, 2025

No description provided.

@Diaan Diaan changed the base branch from main to feature/text-field-refactor-styling February 12, 2025 15:01
@@ -74,6 +87,15 @@ export const Basic: Story = {
}
};

export const Bold: Story = {
args: {
Copy link
Collaborator

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);
Copy link
Collaborator

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"
Copy link
Collaborator

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());
Copy link
Collaborator

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?

Base automatically changed from feature/text-field-refactor-styling to main February 13, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu button - submenu, accessibility issue to review
5 participants