[PR #14704] [MERGED] Manually set the automation name of the default color scheme for screen reader #30218

Open
opened 2026-01-31 09:39:23 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14704
Author: @PankajBhojwani
Created: 1/19/2023
Status: Merged
Merged: 1/19/2023
Merged by: @undefined

Base: mainHead: dev/pabhoj/default_tag


📝 Commits (1)

  • 62b0ab3 set automation name manually

📊 Changes

2 files changed (+19 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp (+15 -0)
📝 src/cascadia/TerminalSettingsEditor/ColorSchemes.h (+4 -0)

📄 Description

Summary of the Pull Request

When we navigate to the color schemes page, find the default color scheme (if present) and manually set the container's automation name to include the word 'default'.

Note that we don't want to change the actual ColorSchemeViewModel's name since that name is used internally to identify schemes. We only want to change the ListViewItem's name, i.e. the container in the SUI.

PR Checklist

  • Closes running wt -w -0 Minimises terminal (#14401)
  • CLA signed. If not, go over here and sign the CLA
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Validation Steps Performed

Screen reader reads out the 'default' text now. It also correctly reads out the new default scheme if the default scheme is changed via SUI or json.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14704 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 1/19/2023 **Status:** ✅ Merged **Merged:** 1/19/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/default_tag` --- ### 📝 Commits (1) - [`62b0ab3`](https://github.com/microsoft/terminal/commit/62b0ab362266e3faccb72a4b997c69e71ed10268) set automation name manually ### 📊 Changes **2 files changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp` (+15 -0) 📝 `src/cascadia/TerminalSettingsEditor/ColorSchemes.h` (+4 -0) </details> ### 📄 Description ## Summary of the Pull Request When we navigate to the color schemes page, find the default color scheme (if present) and manually set the container's automation name to include the word 'default'. Note that we don't want to change the actual `ColorSchemeViewModel`'s name since that name is used internally to identify schemes. We only want to change the `ListViewItem`'s name, i.e. the container in the SUI. ## PR Checklist * [x] Closes #14401 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Validation Steps Performed Screen reader reads out the 'default' text now. It also correctly reads out the new default scheme if the default scheme is changed via SUI or json. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:23 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30218