Commit b5d1f2d
viz: actually suppress rectangular focus on SVG paths (box-shadow culprit)
Previous fix targeted outline only, but the rectangular cyan box was the
box-shadow from the global :focus-visible rule: Chrome renders both
outline AND box-shadow on SVG <path> as the path's bounding-box
rectangle, ignoring the arc geometry.
Fix at source: change global :focus-visible to :focus-visible:not(path)
so the rule simply does not match SVG paths in the first place. Path
focus is now exclusively handled by the dedicated path[role="button"]
rule using stroke (which follows the arc shape).
Added !important on path outline/box-shadow override to defend against
any other selector that may target SVG paths in the future.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5d8f782 commit b5d1f2d
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | | - | |
173 | | - | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
0 commit comments