Settings: make font axis/feature rows navigable, name delete buttons per row #20870
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.48) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 520 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.374
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #20870"
general
weight: 0.35
DHowett
Fixing an accessibility bug, it mimics an existing pattern in the settings.
!Side-by-side Tab walk through Variable font axes. Before: Tab focuses the whole slnt row, then its value, then a Delete button named only "Delete", then jumps to Add new and skips the Weight row. After: Tab focuses the slnt value, Delete slnt, the Weight value, Delete Weight (wght), then Add new.
AI Summary of the Pull Request
In Profile > Appearance, the "Variable font axes" and "Font features" lists used a
ListView, so each row was a focus stop that read "Weight (wght): 400" and did nothing. A screen reader gave no hint that the row had a value box and a Delete button. The Delete buttons were all just called "Delete". Since theListViewis a single Tab stop, Tab also skips every row after the first one. With two font axes, the "Weight (wght)" value box and Delete button can't be reached with Tab at all.This swaps both lists for a plain
ItemsControl, so Tab goes straight to each entry's value box and then its Delete button. Each Delete button now has a per-row name, like "Delete Weight (wght)". This is the same pattern as the key binding rows in the action editor (#20215).References and Relevant Issues
#20579
Detailed Description of the Pull Request / Additional comments
Appearances.xaml: bothListViews are nowItemsControl(IsTabStop="False", stretched,StackPanelwithSpacing="8"). The rowGridno longer setsAutomationProperties.Name, because nothing reads it without aListViewItem. The Delete button bindsAutomationProperties.Nameto a newDeleteButtonNameinstead of usingx:Uid, so the resource doesn't fight the binding.FontKeyValuePair: replaced the now-unusedAutomationName("Weight (wght): 400") withDeleteButtonName, built from a newProfile_DeleteFontKeyValuePairButtonNameFormatstring ("Delete {}").Resources.resw(en-US only): the new format string replaces the oldProfile_DeleteFontKeyValuePairButton"Delete" name, which nothing references anymore.Validation Steps Performed
Built
Terminal\CascadiaPackage(Debug, ARM64) formainand for this branch, and deployed each. I added two font axes (wght,slnt) and two features (calt,liga) toprofiles.defaults, then opened Settings > Profiles > Defaults > Appearance and expanded both sections. Checked with UI Automation:main: each row is aListItemnamed like "slnt: 0" or "Weight (wght): 400", and every Delete button is named just "Delete". Tab walk from the Font axes reset button: "slnt: 0" list item, slnt value, "Delete", "Add new font axis". The Weight (wght) row is never reached.ListItemelements under either expander. Each row shows up as the label, the NumberBox (for example "Weight (wght)") and a Button named "Delete Weight (wght)", "Delete slnt", "Delete Contextual alternates (calt)" or "Delete Standard ligatures (liga)".Tagbinding still works).Tab walk through "Variable font axes", one screenshot per Tab press (the empty middle of each row is cut out):
!Side-by-side Tab walk through Variable font axes. Before: Tab focuses the whole slnt row, then its value, then a Delete button named only "Delete", then jumps to Add new and skips the Weight row. After: Tab focuses the slnt value, Delete slnt, the Weight value, Delete Weight (wght), then Add new.
PR Checklist
- If checked, please file a pull request on our docs repo and link it here: #xxx