Facepile: is not tab-able without onClick, which affects some accessibility scenarios
Bug Report
- __Package version(s): v0.87
Describe the issue:
Facepile is not accessible. It does not have any tabIndex properties on any of the persona sub-components
Actual behavior:
I cannot focus a facepile persona
Expected behavior:
I should be able to focus a facepile persona
I think this is actually by design. If you provide an onClick, it renders as a tab-able entity.
I do think there should be a FocusZone around it however. I see Matt has a PR for this. @cliffkoh and I will work with him on it.
Keep in mind that for accessibility, you want interactive entities to be tabable. For non-interactive entities, I believe from a JAWS perspective they can arrow to the elements in a specific reading mode.
@cschlechty can keep me honest here.
I think we need discussion here; I don't believe the answer here to making it accessible is to make it tab-able even when non-interactive. If you have an onClick handler, it becomes interact-able and therefore should be tab-able.
I would expect to be able to tab through the items in the facepile and get a readout of their name perhaps? Even if their persona had no action associated with them. There are other components on the page that are not interact-able, yet can still be tabbed to: titles, cards, etc.
Tabs aren't required, nor suggested, for an element to be readable via screen reader. Each AT has key commands for reading through a page. In jaws, that's the down arrow in virtual cursor mode, narrator is Caps+M.
Per discussion, closing. Accessibility rules are:
Add tab stops for interactive items Add aria-labels to things that need them if the content is unclear Don't add tab-stops on every element just to get the screen reader reading them
Thanks.
-- Matt
From: David Zearing [mailto:[email protected]] Sent: Wednesday, January 25, 2017 5:04 PM To: OfficeDev/office-ui-fabric-react [email protected] Cc: Matt Lind [email protected]; Assign [email protected] Subject: Re: [OfficeDev/office-ui-fabric-react] Facepile: is not tab-able without onClick, which affects some accessibility scenarios (#853)
Per discussion, closing. Accessibility rules are:
Add tab stops for interactive items Add aria-labels to things that need them if the content is unclear Don't add tab-stops on every element just to get the screen reader reading them
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2Foffice-ui-fabric-react%2Fissues%2F853%23issuecomment-275281495&data=02%7C01%7Cv-mattli%40microsoft.com%7Cdc88f1889e7a482483a108d445873e64%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636209894550212854&sdata=tIY4ms3zJSWzFSmQU6yUc9XV1P0b1tZ3Vot1zku4ra4%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJJ6BFk0UVG_aGha9dYLb18wCqvFsydfks5rV_EJgaJpZM4Lowpr&data=02%7C01%7Cv-mattli%40microsoft.com%7Cdc88f1889e7a482483a108d445873e64%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636209894550212854&sdata=iqgnacX2S%2BC9PBa160gnXa3eORIOo%2BwPApbBaSE7wGg%3D&reserved=0.