mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-18 22:45:59 +01:00
fix: a screen reader hears which sceneries lie under a group
Avalonia hung the entries under a group on the panel inside it, so NVDA counted every scenery at level one and the tree sounded flat. An open group now gives its entries as its own, and each entry names its group as its parent: Całkowo is level one, calkowo_lotos under it level two.
This commit is contained in:
@@ -39,4 +39,16 @@ public class ExpandableTreeViewItemTests
|
||||
peer.Collapse();
|
||||
Assert.False(item.IsExpanded);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void An_entry_on_its_own_has_nothing_under_it_and_nothing_over_it()
|
||||
{
|
||||
var item = new ExpandableTreeViewItem { Header = "Całkowo", IsExpanded = true };
|
||||
var peer = ControlAutomationPeer.CreatePeerForElement(item);
|
||||
|
||||
Assert.Empty(item.ReadableChildren);
|
||||
Assert.Null(item.ReadableParent);
|
||||
Assert.Empty(peer.GetChildren());
|
||||
Assert.Null(peer.GetParent());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user