openclaw - ✅(Solved) Fix [Bug]: Webchat text selection highlight color has insufficient contrast for color-deficient users [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60850Fetched 2026-04-08 02:46:28
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
referenced ×3labeled ×2cross-referenced ×1

Webchat text selection highlight color has insufficient contrast for color-deficient users. The selection highlight is nearly identical to the background, making it impossible to see what text is highlighted. No workaround found via Windows color filters or Chrome accessibility settings. Request: configurable highlight color or higher-contrast default.

Root Cause

Webchat text selection highlight color has insufficient contrast for color-deficient users. The selection highlight is nearly identical to the background, making it impossible to see what text is highlighted. No workaround found via Windows color filters or Chrome accessibility settings. Request: configurable highlight color or higher-contrast default.

Fix Action

Fix / Workaround

Webchat text selection highlight color has insufficient contrast for color-deficient users. The selection highlight is nearly identical to the background, making it impossible to see what text is highlighted. No workaround found via Windows color filters or Chrome accessibility settings. Request: configurable highlight color or higher-contrast default.

PR fix notes

PR #60854: fix(webchat): increase text selection highlight contrast for color-deficient users

Description (problem / solution / changelog)

Problem

The ::selection pseudo-element used --accent-subtle (rgba(255, 92, 92, 0.1) — 10% opacity) as the highlight background. This makes selected text nearly invisible for users with color deficiency (tint/shade perception issues) and is indistinguishable from the chat background in both themes.

Reported in #60850 with screenshot evidence.

Fix

Switch to --accent-muted (the fully opaque accent color) with --accent-foreground as the selection text color. This gives a clear, high-contrast highlight that:

  • Works in both dark and light themes (CSS variables are theme-scoped)
  • Matches the existing accent palette (no new colors introduced)
  • Passes WCAG AA contrast ratio (red accent on white foreground)

Before: rgba(255, 92, 92, 0.1) on #0e1015 background → near-invisible
After: #ff5c5c on #fafafa → clearly visible selection highlight

Fixes #60850

Changed files

  • ui/src/styles/base.css (modified, +5/-2)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Webchat text selection highlight color has insufficient contrast for color-deficient users. The selection highlight is nearly identical to the background, making it impossible to see what text is highlighted. No workaround found via Windows color filters or Chrome accessibility settings. Request: configurable highlight color or higher-contrast default.

Steps to reproduce

High light text in browser and I can not see it highlighted in any setting or theme.

Expected behavior

Most browser actions and websites the highlight color blue on black or white, depending on native day or night theme.

Actual behavior

Color is indistinguishable for a tint and shade color deficient person

OpenClaw version

Claude Sonnet 4.6 (anthropic/claude-sonnet-4-6), running inside OpenClaw 2026.4.2

Operating system

Windows 11

Install method

npm install -g openclaw

Model

Claude Sonnet 4.6 (anthropic/claude-sonnet-4-6

Provider / routing chain

Direct — local gateway only

Additional provider/model setup details

<img width="318" height="166" alt="Image" src="https://github.com/user-attachments/assets/c874e622-6e2f-443e-a071-c8e1163e5354" />

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

Implementing a configurable highlight color or increasing the contrast of the default highlight color can resolve the issue of insufficient contrast for color-deficient users.

Guidance

  • Review the current CSS styles applied to the webchat text selection to identify the highlight color and its contrast ratio with the background.
  • Consider adding a configuration option to allow users to customize the highlight color to a high-contrast color of their choice.
  • Evaluate the use of a higher-contrast default highlight color, such as blue on black or white, to improve accessibility for color-deficient users.
  • Test the webchat with different color schemes and themes to ensure the highlight color remains visible and accessible.

Example

No specific code example can be provided without knowing the exact CSS styles or codebase, but a general approach might involve adding a CSS variable for the highlight color and allowing users to override it:

/* example.css */
.webchat-text-selection {
  background-color: var(--highlight-color);
}

/* user-config.css */
:root {
  --highlight-color: #007bff; /* high-contrast blue */
}

Notes

The solution may require modifications to the webchat's CSS styles and potentially adding configuration options, which could involve updates to the OpenClaw or Claude Sonnet codebase.

Recommendation

Apply a workaround by adding a configurable highlight color option to improve accessibility for color-deficient users, as this can be a more immediate solution than waiting for a potential update to the default highlight color.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Most browser actions and websites the highlight color blue on black or white, depending on native day or night theme.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: Webchat text selection highlight color has insufficient contrast for color-deficient users [1 pull requests, 1 participants]