fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ChoiceGroup A11y Pass

Open TestAccessibilityGIT opened this issue 8 years ago • 23 comments

Tracking all of the issues brought up with the 10/23 accessibility pass on ChoiceGroup control Details on individual bugs can be found on SharePoint

  • [x] ~~Bug 1: [Accessibility][Usable]: Screen starts scrolling down after navigating last 'Mark displayed items as read after' drop down items using down arrow key.~~ Doesn't repro anymore.
  • [x] ~~Bug 2: [Accessibility][Keyboard navigation]: Focus order is not correct while navigating 'ChoiceGroup with dropdown' radio buttons.~~ Fixed in #8107.
  • [x] ~~Bug 3: [Accessibility][Programmatic access]: 'Required' text is not visually present for 'Here is a custom label' mandatory field.~~ Fixed in #8118.
  • [x] ~~Bug 4: [Accessibility][Programmatic access]: Name of the drop down under 'ChoiceGroup with dropdown' section is not provided.~~ Fixed in #8107.
  • [x] ~~Bug 5: [Accessibility][Usable]: Narrator focus is not visible while navigating through radio buttons.~~ Fixed in #8126.
  • [x] ~~Bug 6: [Accessibility][Usable]: Scan mode focus goes on some hidden content after 'Show code' button.~~ Doesn't repro anymore.
  • [x] ~~Bug 7: [Accessibility][Screen reader]: Radio buttons have two scan mode focus.~~ By design.
  • [x] ~~Bug 8: [Accessibility][Screen reader]: Narrator does not convey collapsed state of 'Mark displayed items as read after' drop down.~~ Duplicate of #5752.
  • [x] ~~Bug 9: [Accessibility][Programmatic access]: 'Selected state' is not defined for 'ChoiceGroup with icons- week radio button.~~ Fixed in #8112.
  • [x] ~~Bug 10: [Accessibility][Programmatic access]: 'Role=application' should not be implemented.~~ By design.
  • [x] ~~Bug 11: [Accessibility][Usable][Suggestion]: Radio group could be better labelled using 'field set' and 'legends'.~~ By design.

Component: ChoiceGroup @micahgodbolt

TestAccessibilityGIT avatar Oct 24 '18 21:10 TestAccessibilityGIT

Bug 2

Hi @TestAccessibilityGIT can you provide more detail on what do you mean by "focus order not being correct". What are your expectations for the focus order while navigating "ChoiceGroup with dropdown" radio buttons?

khmakoto avatar Nov 05 '18 18:11 khmakoto

Bug 3

Hi @TestAccessibilityGIT, can you tell me what exactly do you mean by "'Required' text not visually present"?

khmakoto avatar Nov 05 '18 18:11 khmakoto

Bug 4

Hi @TestAccessibilityGIT, just wanted to check if you meant that the "label" and "aria-label" attributes in the dropdown were not set when you say "name of dropdown under 'ChoiceGroup with dropdown' section is not provided".

khmakoto avatar Nov 05 '18 18:11 khmakoto

Bug 2 Hi @khmakoto when we have selected "Option B" under "ChoiceGroup with dropdown" then on tabbing, focus should land on "Option B". But here focus is landing on "Mark displayed items as read after 5 seconds" which doesn't seems to be logical.

TestAccessibilityGIT avatar Nov 05 '18 21:11 TestAccessibilityGIT

Bug 3 Hi @khmakoto, by "require/mandatory" field we mean * sign which generally displayed to show that it's mandatory/required to be field. '*' has been implemented for other choices but not in case of "Here is a custom label".

TestAccessibilityGIT avatar Nov 05 '18 22:11 TestAccessibilityGIT

Bug 4

Hi @khmakoto, here screen reader is reading the "Pick one" label which is actually the label for group of radio groups. In this case screen reader should read the name as "Mark displayed items as read after" then the selected options.

TestAccessibilityGIT avatar Nov 05 '18 22:11 TestAccessibilityGIT

Bug 5 and 6 Hi @khmakoto, please turn on screen reader in scan mode then follow the steps mentioned in bug report. Please let us know if you still find any issue which reproducing this issue.

TestAccessibilityGIT avatar Nov 05 '18 22:11 TestAccessibilityGIT

I'll cross out Bug 10 since in the code we have comments specifying that we need role=application assigned on the containing div because JAWS doesn't recognize OnKeyDown without this role.

khmakoto avatar Jan 07 '19 18:01 khmakoto

Crossing out Bug 1 as it seems that this issue has been fixed and doesn't repro anymore.

khmakoto avatar Feb 25 '19 22:02 khmakoto

Bug 3

Hi @TestAccessibilityGIT, on the Sharepoint Sheet, in the 'Expected result' section of this bug, you say:

'Required' attribute should not be implemented on each radio options. Screen reader shouId convey this information on selected option in forward navigation/backward navigation.

Would the fix here be to only implement the required attribute on the selected radio options and leave it out of the other ones?

khmakoto avatar Feb 25 '19 22:02 khmakoto

Crossing out Bug 8 as it is an underlying issue with the Dropdown component that is being tracked in #5752.

khmakoto avatar Feb 26 '19 19:02 khmakoto

+Amit

TestAccessibilityGIT avatar Feb 26 '19 20:02 TestAccessibilityGIT

Bug 3

After going through the spec I've found out the recommendation for required is to have the prop set on all radio buttons of a group:

image

Given this, I'll just fix the first part of the issue.

khmakoto avatar Feb 27 '19 00:02 khmakoto

Bug3:

As a best screen reader experience and coding practice we should implement radio group as fieldset and legend as mentioned in Bug 11, Upon implementing this screen reader will read required only once if we provide aria-required=true attribute in legend/fieldset. Implementing Required in each radio button will confuse the user as he can select only one radio button at a time and also here for disabled radio button as well its being read as required which is confusing.

v-doku avatar Feb 27 '19 07:02 v-doku

Crossing out Bug 6 as it seems that this issue has been fixed and doesn't repro anymore.

khmakoto avatar Feb 27 '19 18:02 khmakoto

:tada:This issue was addressed in #8112, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Mar 01 '19 13:03 msft-github-bot

:tada:This issue was addressed in #8126, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Mar 01 '19 13:03 msft-github-bot

:tada:This issue was addressed in #8118, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Mar 01 '19 13:03 msft-github-bot

:tada:This issue was addressed in #8107, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Mar 01 '19 13:03 msft-github-bot