Skip to content

fix(tui): keep question form highlights on the raised surface - #52872

Merged
jlongster merged 1 commit into
v2from
fix-selection-bg
Oct 3, 2026
Merged

jlongster merged 1 commit into
v2from
fix-selection-bg

Conversation

@jlongster

@jlongster jlongster commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

In the question form, the focused option and the selected/hovered tab draw a darker strip behind their text that doesn't match the raised panel around them.

Cause

#49661 replaced useTheme("elevated") with the base theme and swapped background.default for background.raised.base in the form. The highlighted states still used background.formfield.focused/selected, which alias $background.base. Under the old elevated theme that alias resolved to the elevated background, so it was invisible. Now it resolves to the base background, which is darker than the raised panel.

Fix

Use background.raised.base for those rows and tabs. This restores the look from before #49661: focus and the active tab are shown by text color and weight, not a background chip.

Screenshots

Focused option

Before After
before after

Tabs (multiple questions)

Before #49661 Current v2 This PR
before #49661, first tab current, first tab this PR, first tab
before #49661, second tab current, second tab this PR, second tab

@jlongster
jlongster merged commit d9d094a into v2 Oct 3, 2026
24 checks passed
@jlongster
jlongster deleted the fix-selection-bg branch October 3, 2026 00:34
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
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