MessageBar A11y Pass
Tracking all of the issues brought up with the 1/22 accessibility pass on MessageBar control Details on individual bugs can be found on SharePoint
- [x] Bug1: Bug1: [Accessibility][Visual requirements]: Luminosity ratio of link 'Visit our website' under 'Error, single line, with dismiss button - custom styles' section is less than 4.5:1 ratio.
- [x] Bug2: [Accessibility][Keyboard navigation]: Focus indicator is not properly visible on 'visit our website' link.
- [x] Bug3: [Accessibility][Screen Reader]: Narrator in scan mode doesn't announce the role of 'See More' , 'Close ('X')' buttons and 'visit our website' link under 'Blocked, single line, with dismiss button and truncated text - custom styles' section. "
- [x] Bug4: [Accessibility][Screen Reader]: Narrator doesn't announce the state of 'See More' button while navigating with tab key.
- [x] Bug5: [Accessibility][Keyboard Navigation]: Text is disappearing from the screen when keyboard focus moves to the 'See more' button. "
- [x] Bug6: [Accessibility][ Supporting the platform]: Controls present in the ‘MessageBar’ are not adopting high contrast settings. "
- [x] Bug7: [Accessibility][Suggestion]: Appeared message bar should have ‘Aria-live’ property and region landmark. "
Component: MessageBar
@micahgodbolt
Please add the following issue on Message w.r.t. Screen Reader When we navigate to the MessageBar while using Narrator with Caps Key + Arrow, it announces as "Status" and we have to click Caps Key + Arrow once again to read the text.
For example Narrator reads the following for the example in https://developer.microsoft.com/en-us/fabric#/controls/web/messagebar
`Show code, button, Info/Default MessageBar,
status,
Info lorem ipsum dolor sit amet, a elit sem interdum consectetur adipiscing elit.,
link, Visit our website.,
Error MessageBar - single line, with dismiss button,
Search or enter web address, edit, https://developer.microsoft.com/en-us/fabric#/controls/web/messagebar, navigation landmark,`
The reading out of "status" is not clear. It should announce the text present on the page on the first caps+arrow key, the word "Status" should not be announced.
2 - Seems to be working now.

6 - high contrast is working fine



Looks like everything is resolved by my upcoming PR.
Removed the custom styles section as it was full of a11y issues and didn't serve any specific purpose.
:tada:This issue was addressed in #10666, which has now been successfully released as [email protected].:tada:
Handy links: