WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

Controls Accessibility Issues

Open Bmartin2013 opened this issue 8 years ago • 15 comments

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Color & High contrast themes.

These controls won't change the background color while the app its running.

  • [x] InAppNotification.
  • [x] Expander.
  • [x] Menu.

These controls have other issues with high contrast themes.

  • [x] Radial Gauge. The progress indicator color and the control background color are the same in high contrast themes.
  • [x] MarkDownTextBlock. The hyperlink color doesn't change.
  • [x] TextToolbar. The buttons from the toolbar require a transparent button image to pass the high contrast testing. For example, these buttons confuse the user because the background color didn’t change. Proposed solution: Replace images with font icons.

Strange behavior / Nice to have

  • [x] GridSplitter. The highlighted control has the same color as the background on the High Contrast White theme. It only happens with a white background, as the GridSplitter color is defined by the developer. A note should be added on the documentation to tell developers they should implement the behavior to change the color according to the theme.
  • [x] BladeView. The close and expand/collapse buttons don't have a hover with high contrast enabled, no matter the theme. [PR WAITING FOR REVIEW #2772 ]
  • [x] TileControl. When adding a button, the button template is hardly visible in darker backgrounds.

Keyboard

These controls are focused whether they have focusable elements within or not.

  • [x] InAppNotification.
  • [x] SharePointFileList.
  • [x] TabView [PR WAITING FOR REVIEW #2757 ]
  • [x] BladeView.
  • [x] Expander ContentOverlay when used its ContentControl can have focus. Also, if a focusable item is in the ContentOverlay and it is hidden, it can still take focus...

These controls are focusable and don't have a visual focus indicator.

  • [x] InAppNotification.
  • [x] SharePointFileList.
  • [x] OrbitView.
  • [x] InfiniteCanvas.

These controls have other keyboard navigation issues.

  • [x] GridSplitter & Expander. The tab order is different from the visual order. e.g. in expander if it has focusable content it isn't tabbed to next after the expander header but after everything else on the page.
  • [x] StaggeredPanel. Tab navigation is not available, navigation only works with down arrow key. The elements are selectable but cannot receive any action.
  • [x] TabView Tab navigation has issues when overflow scrolls are visible. Tab ordering is a bit off by default.
  • [x] AlignmentGrid seems like it can take keyboard focus even though it shouldn't be focusable?

Strange behavior / Nice to have

  • [x] AdaptativeGridView. Having ItemClick disabled and selection mode as single, when an item is focused and a textbox on another item is clicked, the selected item won't change.

Narrator

These controls have issues with the narrator.

  • [x] SharePointFileList. Only inner elements are recognized.
  • [ ] Profile Card. The profile image isn't recognized when you place the mouse over this control.
  • [x] Loading. The text isn't recognized.
  • [x] Radial Gauge. Only the text is recognized when the mouse is placed over it.
  • [x] RoundImageEx. It should recognize the image name.
  • [x] RangeSelector. The control is identified, but the min/max values aren't mentioned.
  • [x] GridSplitter. Not recognized.
  • [x] InAppNotification. Reads its contents but it doesn't specify that comes from a notification.
  • [x] BladeView. Collapse button has no name
  • [x] TabView. Close Button has no name, Tab Indices are wrong.

Strange behavior / Nice to have

  • [x] BladeView. Indication when a Blade is collapsed or closed.
  • [x] MasterDetailsView. The narrator should read the detail from the master item when you step on it.

Expected behavior

Color & High Contrast themes

  1. Controls must support the 4 high contrast themes by default on Windows, in addition to changing the theme while the app is running.

  2. Controls must have a contrast ratio of at least 4.5:1 between the text (and images with text) and the background behind it.

Keyboard

  1. Controls must support keyboard navigation (tabs and arrow keys), the tab order must be the same as the UI and non-interactive elements mustn't be focusable.

  2. Composite elements must ensure proper inner navigation among the contained elements.

  3. Clickable UI elements must be invokable with the keyboard (The trigger keys are enter and space).

  4. Focusable elements must have a visual focus indicator. It's usually a rectangle shape around the control's normal bounding rectangle.

Narrator

  1. Controls must support narrator.

Minimal reproduction of the problem with instructions

In this repository, you can find test apps for each control. To test each rule, you can follow the steps in this document.

Accessiblity Testing.docx

Environment

Nuget Package(s):
  Microsoft.Toolkit.Services
  Microsoft.Toolkit.Uwp.UI.controls
  Microsoft.Toolkit.Uwp.UI.Controls.Graph
  Microsoft.Toolkit.Uwp.DeveloperTools

Package Version(s):
  v3.0.0

Windows 10 Build Number:
- [ ] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [X] April 2018 Update (17134)
- [ ] Insider Build (build number: )

App min and target version:
- [X] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [X] April 2018 Update (17134)
- [ ] Insider Build (xxxxx)

Device form factor:
- [X] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio
- [X] 2017 (version: 15.7.4)
- [ ] 2017 Preview (version: )

Bmartin2013 avatar Jun 29 '18 21:06 Bmartin2013

Also, we should keep in mind the following accessibility issues https://github.com/Microsoft/WindowsCommunityToolkit/issues/2233 submitted by @harinikmsft: https://github.com/Microsoft/WindowsCommunityToolkit/issues/2142 submitted by @vleonavmsft

Bmartin2013 avatar Jul 05 '18 21:07 Bmartin2013

Thank you for going through all of the controls and creating this issue that we can use for tracking. This is a lot of work and it's going to take multiple developer to get everything right. If anyone is planing on working on any control, please comment here so we can track.

nmetulev avatar Jul 09 '18 01:07 nmetulev

@Bmartin2013, I like the write up about the expected bahavior. Could you update the Contributing.md doc to add a section on accessibility with this content?

nmetulev avatar Jul 09 '18 01:07 nmetulev

I will be taking a look at a few of these. To start off I will take the first batch of issues under "These controls won't change the background color while the app its running."

joseartrivera avatar Aug 28 '18 18:08 joseartrivera

I'm working on this issue now - My plan is to submit smaller PRs to address the various issues in the list above.

TGoodhew avatar Sep 26 '18 18:09 TGoodhew

@TGoodhew Did you already started on the Radial Gauge? I have appropriate high contrast default colors and an AutomationPeer for the Narrator ready.

XamlBrewer avatar Oct 02 '18 07:10 XamlBrewer

Great – I’m just wrapping up expander now – Can you tell me the branch you have these in and I’ll bring them over.

Thanks,

TonyG

From: Diederik Krols [email protected] Sent: Tuesday, October 2, 2018 12:54 AM To: windows-toolkit/WindowsCommunityToolkit [email protected] Cc: Tony Goodhew [email protected]; Mention [email protected] Subject: Re: [windows-toolkit/WindowsCommunityToolkit] Controls Accessibility Issues (#2276)

@TGoodhewhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTGoodhew&data=02%7C01%7Ctgoodhew%40microsoft.com%7C1b75ce1fb0864caa884008d6283c3e7d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636740636548801236&sdata=4zno4JR%2FjVRcdMyosJcC4j5%2FnpJEs9dpQJA%2FAPwThUI%3D&reserved=0 Did you already started on the Radial Gauge? I have appropriate high contrast default colors and an AutomationPeer for the Narrator ready.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwindows-toolkit%2FWindowsCommunityToolkit%2Fissues%2F2276%23issuecomment-426182396&data=02%7C01%7Ctgoodhew%40microsoft.com%7C1b75ce1fb0864caa884008d6283c3e7d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636740636548801236&sdata=7VlOx4an%2BlpkMd9TCc0owVXOoDP2z1XXUMVHAHFimB4%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH5nNEArsFR1Z7WsJxXF0dsoDdeOwJ7Cks5ugxukgaJpZM4U9q04&data=02%7C01%7Ctgoodhew%40microsoft.com%7C1b75ce1fb0864caa884008d6283c3e7d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636740636548811248&sdata=OXnLpV6u%2F84gRJGGdBdBbOETpfcIf1TsKmswAm265IQ%3D&reserved=0.

TGoodhew avatar Oct 02 '18 17:10 TGoodhew

@XamlBrewer I recommend to just submit the PR for the Radial Gauge if you already have it ready.

nmetulev avatar Oct 02 '18 18:10 nmetulev

GridSplitter strange behavior on High Contrast White theme (also requires the app theme to be Light to test it on the toolkit's Sample App) gridsplitter high contrast white

kbrons avatar Oct 11 '18 20:10 kbrons

Ah the splitter itself goes white - Is that correct?

TGoodhew avatar Oct 11 '18 20:10 TGoodhew

Yes, when hovered or selected

kbrons avatar Oct 11 '18 20:10 kbrons

For buttons in TabView/BladeView, going to see if we can just tag them with a x:Uid. If that lets a developer localize/specify resources in their app instead, that could be the path of least resistance.

michael-hawker avatar Jan 08 '19 21:01 michael-hawker

Hi everyone! we're working to solve the keyboard focus features for the controls listed below.

image

Bmartin2013 avatar Jan 15 '19 14:01 Bmartin2013

Hi, we were working on the controls and have an update.

We tested the following controls with the package version 5.0 and we didn't find any focus problems

  • Loading
  • RadialProgressBar
  • InfiniteCanvas
  • GridSplitter
  • ProfileCard

lucaasrojas avatar Jan 17 '19 19:01 lucaasrojas

Going to close this issue as we addressed the majority of concerns in the 5.1 release. Any other accessibility issues should be addressed by opening new issues per item.

michael-hawker avatar Feb 28 '19 23:02 michael-hawker