Repository navigation
Commit 2cb4003
committed
fix(web): screen readers hear the add-project submit shortcut
The Add project folder browse, clone, and New project steps show their
submit action and shortcut only on a tabIndex=-1 button beside the input,
so screen reader users in focus mode never hear how to submit.
Give the submit button a stable id and point the palette input's
aria-describedby at it whenever the button is rendered. The button's
aria-label, which already tracks the highlighted row, becomes the input's
description. Other palette views render no button and get no description.
Fixes #32567
AI-assisted; verified with the tests and tools listed above.1 parent fe59342 commit 2cb4003
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
2747 | 2748 | | |
2748 | 2749 | | |
2749 | 2750 | | |
| 2751 | + | |
2750 | 2752 | | |
2751 | 2753 | | |
2752 | 2754 | | |
| 2755 | + | |
2753 | 2756 | | |
2754 | 2757 | | |
2755 | 2758 | | |
| |||
2761 | 2764 | | |
2762 | 2765 | | |
2763 | 2766 | | |
| 2767 | + | |
2764 | 2768 | | |
2765 | 2769 | | |
2766 | 2770 | | |
| |||
2772 | 2776 | | |
2773 | 2777 | | |
2774 | 2778 | | |
| 2779 | + | |
2775 | 2780 | | |
2776 | 2781 | | |
2777 | 2782 | | |
| |||
2849 | 2854 | | |
2850 | 2855 | | |
2851 | 2856 | | |
| 2857 | + | |
2852 | 2858 | | |
2853 | 2859 | | |
2854 | 2860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments