← Back to Pull requests

Settings: make font axis/feature rows navigable, name delete buttons per row #20870

Open
unknown opened this pull request with 520 lines diff across 6 files
View on GitHub
unknown unknown commented on Oct 30, 2026 03:40 UTC
Author

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 the ListView is 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: both ListViews are now ItemsControl (IsTabStop="False", stretched, StackPanel with Spacing="8"). The row Grid no longer sets AutomationProperties.Name, because nothing reads it without a ListViewItem. The Delete button binds AutomationProperties.Name to a new DeleteButtonName instead of using x:Uid, so the resource doesn't fight the binding.

  • FontKeyValuePair: replaced the now-unused AutomationName ("Weight (wght): 400") with DeleteButtonName, built from a new Profile_DeleteFontKeyValuePairButtonNameFormat string ("Delete {}").

  • Resources.resw (en-US only): the new format string replaces the old Profile_DeleteFontKeyValuePairButton "Delete" name, which nothing references anymore.
  • Validation Steps Performed


    Built Terminal\CascadiaPackage (Debug, ARM64) for main and for this branch, and deployed each. I added two font axes (wght, slnt) and two features (calt, liga) to profiles.defaults, then opened Settings > Profiles > Defaults > Appearance and expanded both sections. Checked with UI Automation:
  • main: each row is a ListItem named 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.

  • This branch: there are no ListItem elements 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)".

  • This branch, Tab walk from the same reset button: slnt value, "Delete slnt", Weight (wght) value, "Delete Weight (wght)", "Add new font axis", the Font features expander, then its reset button. No dead row stops.

  • Invoking "Delete slnt" removes that row (the Tag binding still works).

  • Visually checked the layout. Rows line up with the "Add new" button.
  • 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


  • Closes #20579

  • Tests added/passed

  • Documentation updated

  • - If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
  • Diff: 520 lines (+390 / -130) across 6 files Reviewer: DHowett Review duration: 15590m
    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
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.2% · Safe to merge
    27.2%