Skip to content

ux: soften .text-highlight background in night mode#539

Open
xpoes123 wants to merge 1 commit into
qbreader:mainfrom
xpoes123:a11y/text-highlight-night-mode
Open

ux: soften .text-highlight background in night mode#539
xpoes123 wants to merge 1 commit into
qbreader:mainfrom
xpoes123:a11y/text-highlight-night-mode

Conversation

@xpoes123

@xpoes123 xpoes123 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The solid bright-yellow .text-highlight background was visually jarring in night mode, creating a harsh contrast against the dark surface. This PR adds a night-mode override that uses a translucent amber so highlighted query terms remain clearly visible without overwhelming the page.

Problem

In night mode, .text-highlight rendered with the same fully-opaque #f8ff00 background defined for light mode. Against a dark background this produced an uncomfortably bright flash of color that hurt readability rather than aiding it.

Changes

  • Adds a .text-highlight override inside the @include color-mode(night, true) block in scss/themes/night.scss, setting background-color: rgba(248, 255, 0, 0.35) and color: inherit.

Risk & testing

Follows the existing pattern used throughout scss/themes/night.scss for night-mode overrides. The light-mode rule in custom.scss is untouched. CSS-only change with no JavaScript impact.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@xpoes123 xpoes123 changed the title a11y: soften text-highlight in night mode ux: soften .text-highlight background in night mode Jun 30, 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