Commit 6e06bbe
committed
fix: Keep workspace stack count fresh instead of hiding it on Apple (#9885)
Screen readers read the workspace's region label when its contents are
focused, but updateAriaLabel only ran on the workspace node's own focus.
When a child block took focus on first entry the label was never
refreshed, so a stale stack count (e.g. "0 stacks") was announced. The
previous workaround dropped the count entirely on Apple.
Refresh the label in onTreeFocus, which fires whenever focus enters the
workspace tree (including via a child), before the element is focused, so
the announced count is current. This lets us restore the informative
stack count on all platforms.1 parent f466d4d commit 6e06bbe
1 file changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | 748 | | |
760 | 749 | | |
761 | 750 | | |
| |||
2975 | 2964 | | |
2976 | 2965 | | |
2977 | 2966 | | |
2978 | | - | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
2979 | 2975 | | |
2980 | 2976 | | |
2981 | 2977 | | |
| |||
0 commit comments