Commit bd3579d
authored
Give header panel toggles a visible on-state (#513)
The three panel-toggle buttons in the header (sidebar / split /
inspector) previously signalled their state only through a **one-shade
text-colour shift** from `text-fg-3` to `text-fg-2` — so subtle that the
buttons looked identical whether the panel they controlled was open or
closed.
Each toggle now wears a **filled `bg-surface-2` pill with `text-fg`**
while active, matching the `data-active` convention already used by
`SubPanelTabBar` and `ScrollToBottom`. Inactive toggles keep their
existing hover treatment, so the contrast between "off" and "hovering
over off" stays intact.
*No behavioural change — the `active` prop wiring, the click handlers,
and the underlying panel stores are untouched; only the classList on
`PanelToggleIcon` was adjusted.*
### Try it locally
```sh
nix run github:juspay/kolu/fix/panel-toggle-active-indication
```1 parent 267cfbf commit bd3579d
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments