Commit efe844e
committed
Address review feedback
- Return early from the layer card key handler when the event came from a
nested control. The card is a role="button" wrapper that called
preventDefault on Enter, which cancelled the native activation of every
action button inside it, the new palette button included.
- Add an e2e test that opens the Style panel from the card by Enter and by
Space. It fails without the guard above.
- Match the Style panel aside by exact accessible name, so the collapsed
rail ("Layer style (collapsed)") cannot satisfy the default substring
match and mask the initial toHaveCount(0) assertion.
- Note in the user guide that the palette button appears only when the
built-in Style panel is enabled, since onOpenStylePanel is optional.1 parent 80dbae8 commit efe844e
3 files changed
Lines changed: 32 additions & 2 deletions
File tree
- apps/geolibre-desktop/src/components/panels
- docs/user-guide
- e2e
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
3213 | 3217 | | |
3214 | 3218 | | |
3215 | 3219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
0 commit comments