Skip to content

Highlight non-default settings while hovering Reset - #158

Merged
alies-dev merged 1 commit into
masterfrom
alies-dev/highlight-settings-onhover
Nov 16, 2026
Merged

alies-dev merged 1 commit into
masterfrom
alies-dev/highlight-settings-onhover

Conversation

@alies-dev

Copy link
Copy Markdown
Contributor

Context

In the playground's Settings drawer, a setting that differs from its default is marked only with a trailing *, and the Settings button only shows a count ("Settings · 2 changed"). In a long drawer the asterisks are easy to miss, so before clicking Reset you can't quickly see which settings it will restore.

Refs #0

Solution

Hovering or keyboard-focusing Reset now highlights every setting that differs from its default, in the same yellow the editor uses for highlighted lines. It's CSS only: updateSettingsSummary() already puts a .changed class on those rows, and a :has() selector on the drawer reacts to the button's hover/focus state. Browsers without :has() show no highlight; nothing else changes.

@alies-dev alies-dev self-assigned this Nov 16, 2026
@alies-dev
alies-dev merged commit a4bc3f7 into master Nov 16, 2026
1 check passed
@alies-dev
alies-dev deleted the alies-dev/highlight-settings-onhover branch November 16, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant