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

Expose 'Default' tag to Screen Readers in Color Schemes page #15486

Merged

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented May 30, 2023

Summary of the Pull Request

This removes the "default" text box from the UI Automation tree, thus preventing screen readers from navigating to it. This was a confusing scenario for users because the "default" tag was unclear if it was a part of the previous or next color scheme (i.e. consider hearing "Campbell, default, Campbell PowerShell"; it's unclear which one is default).

This also appends the "default" string to the ToString function of the color scheme view model. This makes it so that the combo box and list view visually appear the same, but can be quick searched or read out by the screen reader with the 'default' tag.

Validation Steps Performed

  • Verified this works on Windows 11
  • Verified this works on Windows 10
  • Scenarios tested:
    • saving settings after changing the default scheme
    • saving settings.json to force a refresh in SUI

Closes #14401

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Accessibility Issues related to accessibility Product-Terminal The new Windows Terminal. labels May 30, 2023
@carlos-zamora

This comment was marked as outdated.

@carlos-zamora carlos-zamora force-pushed the dev/cazamor/read-default-scheme-tag branch from 3c2c328 to 2e64d93 Compare May 30, 2023 21:42
@carlos-zamora carlos-zamora marked this pull request as ready for review May 30, 2023 22:58
lhecker
lhecker previously approved these changes May 31, 2023
src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp Outdated Show resolved Hide resolved
DHowett

This comment was marked as resolved.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 31, 2023
@carlos-zamora carlos-zamora force-pushed the dev/cazamor/read-default-scheme-tag branch from 4220a50 to 71058f9 Compare June 1, 2023 23:02
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jun 1, 2023
@DHowett
Copy link
Member

DHowett commented Jun 1, 2023

Make sure the description is up to date!

@DHowett DHowett dismissed lhecker’s stale review June 1, 2023 23:04

totally changed the approach

@carlos-zamora carlos-zamora assigned lhecker and unassigned DHowett Jun 2, 2023
@carlos-zamora
Copy link
Member Author

@msftbot merge this in 10 minutes

@carlos-zamora carlos-zamora added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jun 5, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the dev/cazamor/read-default-scheme-tag branch June 5, 2023 19:50
DHowett pushed a commit that referenced this pull request Jul 27, 2023
## Summary of the Pull Request
This removes the "default" text box from the UI Automation tree, thus
preventing screen readers from navigating to it. This was a confusing
scenario for users because the "default" tag was unclear if it was a
part of the previous or next color scheme (i.e. consider hearing
"Campbell, default, Campbell PowerShell"; it's unclear which one is
default).

This also appends the "default" string to the `ToString` function of the
color scheme view model. This makes it so that the combo box and list
view visually appear the same, but can be quick searched or read out by
the screen reader with the 'default' tag.

## Validation Steps Performed
- [x] Verified this works on Windows 11
- [x] Verified this works on Windows 10
- Scenarios tested:
   - [x] saving settings after changing the default scheme
   - [x] saving settings.json to force a refresh in SUI

Closes #14401

(cherry picked from commit 0425ab0)
Service-Card-Id: 90012453
Service-Version: 1.17
DHowett pushed a commit that referenced this pull request Jul 27, 2023
## Summary of the Pull Request
This removes the "default" text box from the UI Automation tree, thus
preventing screen readers from navigating to it. This was a confusing
scenario for users because the "default" tag was unclear if it was a
part of the previous or next color scheme (i.e. consider hearing
"Campbell, default, Campbell PowerShell"; it's unclear which one is
default).

This also appends the "default" string to the `ToString` function of the
color scheme view model. This makes it so that the combo box and list
view visually appear the same, but can be quick searched or read out by
the screen reader with the 'default' tag.

## Validation Steps Performed
- [x] Verified this works on Windows 11
- [x] Verified this works on Windows 10
- Scenarios tested:
   - [x] saving settings after changing the default scheme
   - [x] saving settings.json to force a refresh in SUI

Closes #14401

(cherry picked from commit 0425ab0)
Service-Card-Id: 90012454
Service-Version: 1.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Accessibility Issues related to accessibility AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
4 participants