Skip to content

Contextual Menu: Added aria-setsize and aria-posinset for rendering split buttons#4044

Merged
dzearing merged 7 commits intomicrosoft:masterfrom
chang47:splitbuttonMeny
Feb 21, 2018
Merged

Contextual Menu: Added aria-setsize and aria-posinset for rendering split buttons#4044
dzearing merged 7 commits intomicrosoft:masterfrom
chang47:splitbuttonMeny

Conversation

@chang47
Copy link
Copy Markdown
Contributor

@chang47 chang47 commented Feb 21, 2018

Problem:
Currently if we try to render a split button in the contextual menu we don't give it an aria-setsize and aria-posinset like we do for regular buttons

Solution:
Added the aria properties in for when we're rendering a split button in contextual menus

Validation
In the contextual menu page, I validated that we now have the appropriate aria-setsize and aria-posinset values set.

@chang47 chang47 requested a review from joschect as a code owner February 21, 2018 01:12
aria-haspopup={ true }
aria-describedby={ item.ariaDescription }
aria-checked={ item.isChecked || item.checked }
aria-posinset={ focusableElementIndex + 1 }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a change file so that this change gets published?

Copy link
Copy Markdown
Contributor Author

@chang47 chang47 Feb 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I knew I forgot something. Added.

Copy link
Copy Markdown
Member

@dzearing dzearing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add change file.

@dzearing dzearing self-assigned this Feb 21, 2018
@dzearing dzearing merged commit 6fbbe89 into microsoft:master Feb 21, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants