Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility:MAS42A: Color is the Only Way of Indicating Changes made in a File. #17263

Closed
WiproPSAccTest opened this issue Dec 15, 2016 · 10 comments
Assignees
Labels
a11ymas Issue from accessibility team accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues diff-editor Diff editor issues feature-request Request for new features or functionality on-testplan windows VS Code on Windows issues
Milestone

Comments

@WiproPSAccTest
Copy link

VS Code Version: 1.6.1
OS Version:1607

Steps to Reproduce:
1.Open visual studio code editor.
2. Open any file and using "Ctrl+1" key navigate to the first vs code editor.
3. Using F1 key navigate to the palette, type "git branch" and "refactor-to-promise" as the branch name
4. Make changes to the code by refactoring, adding/deleting new lines ; observe any Alternative Text Description available for blue/green/red indicators suggesting if code has been changed/new line added/line has been removed.
5. Compare the changes between the HEAD and current file by navigating to View Bar ---> Git ; Navigate to changes and hit ENTER to activate "Diff View" ; Observe any Alternative Test Description available to parse code.

Expected result:
Alternative Text Description for these Color Indications should be there

Actual Result:

  1. Red color Indicates -> No of lines Deleted,
    Blue Color Indicates-> No of Lines edited,
    Green Color Indicates->No of New Lines Added
  2. Red color Indicates how the code was Originally and Green Color Indicates how the Code got changed to

User Impact:
Blind users might not be knowing these changes as Color is the Only Way of Indicating Changes made in a File.

Attachments:
color is the only way of describing a new line is added or line is deleted and line is edited
color is the only way of describing changes made on which line

@kieferrm
Copy link
Member

@rebornix pls comment explaining the current state.

@rebornix
Copy link
Member

@WiproPSAccTest and anyone interested in this issue:

Right now we are indicating modifications in two places, the gutter of the normal editor or the diff editor. For the former, we are only using colors to indicate what kind of change it is.

For the diff editor, we are using both + and - indicators and colors to indicate modifications

The + and - indicators are turned on by default and can be turned off by setting diffEditor.renderIndicators to false.

@WiproPSAccTest
Copy link
Author

@rebornix. Alternative Text Description for these Color Indications should be there. Blind users might not be knowing these changes as Color is the Only Way of Indicating Changes made in a File.

@rebornix rebornix added accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues diff-editor Diff editor issues labels Dec 16, 2016
@M-Yankov
Copy link

M-Yankov commented Dec 18, 2016

A Little off-topic question: Is there a way to change the background color of diff editor (added, removed lines) or I need to create a new theme? For example to make the colors brighter.

@WiproPSAccTest WiproPSAccTest changed the title Accessibility: Color is the Only Way of Indicating Changes made in a File. Accessibility:MAS42A: Color is the Only Way of Indicating Changes made in a File. Feb 1, 2017
@WiproPSAccTest
Copy link
Author

Title has been changed to a common format to perform data population.

@rebornix rebornix added the feature-request Request for new features or functionality label Apr 19, 2017
@isidorn
Copy link
Contributor

isidorn commented May 17, 2017

@WiproPSAccTest This has been fixed, as @rebornix pointed out we are now also showing a + or a - sign in the edior gutter. These can also be seen by color blind people.
The only issue right now is that the - and + are not being read out by the screen reader -> looing into that.

@M-Yankov it is not possible to change this. We also do not expose this colors to themes so the theme can not customize it. However the color is transparent so a different editor background has an effect here. Whether we will expose these colors to themese @aeschli is the best to answer

@aeschli
Copy link
Contributor

aeschli commented May 17, 2017

Yes, you can change the colors and borders of the added/removed ranges using the
workbench.colorCustimizations setting. See
https://code.visualstudio.com/docs/getstarted/theme-color-reference#_diff-editor-colors for the color identifiers.

@isidorn
Copy link
Contributor

isidorn commented May 18, 2017

After discussing with @alexandrudima the only way to improve this is to have a specail experience for browsing through all the difs in a file. Similar to the F8 experience which browses through all the errors.
Currentl the + and - are not pronounced because we have a general issue that we do not announce any editor decroations.

@aeschli aeschli modified the milestones: June 2017, May 2017 Jun 1, 2017
@alexdima alexdima self-assigned this Jun 1, 2017
@alexdima
Copy link
Member

alexdima commented Jun 2, 2017

The root problem mentioned by @isidorn above is that a <textarea> (which is what we use for the aria-role="textbox" and where we place the mirrored editor text) cannot have child dom nodes. This is not a limitation of the accessibility tree, since e.g. Visual Studio represents squiggles as children of the textbox.

In any case, I think the diff information involves more than reading the text and the decorations associated with the text. I think a diff experience should consist of:

  • a way to navigate through diffs (i.e. jump from one diff to another)
  • when navigating to a diff, a brief explanation is presented. e.g. Removed lines 100-110, Added 5 lines after original line 210, Modified lines 230-232.
  • then, once on a diff, a key can be pressed to present a more detailed explanation. e.g. Removed code: "....". etc.
  • also, once on a diff, if the modified editor is editable, a key can be pressed to focus the editor and allow for making more changes.

That's why I think this should be a more refined experience than announcing "+" or "-" on a line.

@alexdima
Copy link
Member

It is now possible to use F7 and Shift+F7 to review diffs in the diff editor.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
@chrmarti chrmarti added the a11ymas Issue from accessibility team label Oct 3, 2018
@isidorn isidorn added the windows VS Code on Windows issues label Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11ymas Issue from accessibility team accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues diff-editor Diff editor issues feature-request Request for new features or functionality on-testplan windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

9 participants