Commit e5ac729
committed
Fix preset/copy buttons picking up Stop button styling
A global `button:last-of-type` rule (originally meant to make the Stop
button grey) was matching whichever button was last in any sibling
group: Wobble (last preset), and the copy buttons (only button in
their row, so also last-of-type). Wobble in particular always looked
highlighted on page load.
Scope the styling to #play and #stop directly. Also added focus
handling so the focus ring only shows for keyboard users, not mouse
clicks.1 parent 47d940a commit e5ac729
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
0 commit comments