fix(app): short accessible names for the rail and archive-year toggles
Both icon-only buttons used their tooltip sentence as their name. They now read "Collapse navigation" / "Expand navigation" (Shell.Nav.Collapse, Shell.Nav.Expand) and "Hide year" / "Show year" (Archive.Tree.Collapse, Archive.Tree.Expand); the sentences stay their tooltips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
10 files changed
+22
-2
No files matched your search
@@ -55,6 +55,8 @@ public sealed class ArchiveScreenSmokeTests
|
||||
AssertEveryButtonIsNamed(app);
|
||||
Assert.Contains(archive.SetText, AutomationProperties.GetName(SetButton(app)));
|
||||
foreach (var row in TreeItems(app)) Assert.NotNull(row.FocusVisualStyle, "a tree row shows keyboard focus");
|
||||
Assert.Equal(Loc.L("Archive.Tree.Collapse"), AutomationProperties.GetName(ButtonFor(app, archive.TreeRows[1].ToggleCommand)),
|
||||
"the open year's expander has a short name; the sentence is its tooltip");
|
||||
var sequence = archive.TreeRows.First(r => r.Node.Kind == TreeNodeKind.Sequence);
|
||||
Assert.Contains(sequence.Title, sequence.RowToolTip);
|
||||
|
||||
|
||||
Reference in new issue
Block a user