-
Notifications
You must be signed in to change notification settings - Fork 165
[terra-dropdown]Added aria-haspoup and aria-controls attribute #3936
Conversation
Is this PR ready for review? |
Yes. |
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.
Please get approval from A11y Team before PR merge
…down-aria-property
aria-haspopup="true" | ||
aria-controls={dropDownMenuListId} |
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.
we need to add aria-controls for split button as well :
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.
Implemented.
beforeAll(() => { | ||
mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000'); | ||
}); | ||
|
||
afterAll(() => { | ||
mockSpyUuid.mockRestore(); |
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.
Need to add similar spy for splitbutton test as well
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.
Done.
+1 |
…down-aria-property
…rra-core into dropdown-aria-property
…down-aria-property
…down-aria-property
Summary
fixed- Screenreader not communicating menu
What was changed:
Added aria-haspoup and aria-controls attribute.
Why it was changed:
The screen reader is not announcing that it has a menu when the drop down button is navigation
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-9694
Thank you for contributing to Terra.
@cerner/terra