openclaw - ✅(Solved) Fix [Bug]: Insufficient color contrast for chat send button icon in light theme [3 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#54348Fetched 2026-04-08 01:28:41
View on GitHub
Comments
0
Participants
1
Timeline
9
Reactions
0
Participants
Timeline (top)
referenced ×4cross-referenced ×3labeled ×2

The chat send button icon has insufficient color contrast in light theme. The button uses background: var(--muted-strong) (#545458, medium gray) and the icon inherits color: var(--text-strong) (#1a1a1e, very dark), resulting in a contrast ratio of approximately 2.3:1, which fails WCAG AA requirements (minimum 4.5:1 for normal text).

Root Cause

The chat send button icon has insufficient color contrast in light theme. The button uses background: var(--muted-strong) (#545458, medium gray) and the icon inherits color: var(--text-strong) (#1a1a1e, very dark), resulting in a contrast ratio of approximately 2.3:1, which fails WCAG AA requirements (minimum 4.5:1 for normal text).

Fix Action

Fixed

PR fix notes

PR #54363: fix(ui): improve chat send button icon contrast in light theme

Description (problem / solution / changelog)

Summary

  • Fix insufficient color contrast on the chat send button icon in light theme (and other themes)
  • Change icon color from var(--text-strong) to #fff for proper contrast against var(--muted-strong) background

Root cause

The send button uses background: var(--muted-strong) (medium gray) with color: var(--text-strong) (near-black in light theme). This produces a contrast ratio of ~2.3:1 in light theme, failing WCAG AA requirements.

Contrast ratios after fix

ThemeBackgroundRatioStatus
dark (root)#75757d4.6:1PASS AA
light#5454587.5:1PASS AA
dash#6e6e765.1:1PASS AA
moonrise#52525a7.7:1PASS AA
driftwood-dark#8a78684.2:1PASS AA (UI components)
driftwood-light#6048388.5:1PASS AA

All themes pass WCAG AA for UI components (3:1 minimum per SC 1.4.11). Five of six also pass the stricter text contrast threshold (4.5:1).

Test plan

  • Verify send button icon is clearly visible in light theme
  • Verify send button icon is clearly visible in dark theme
  • Verify send button icon is clearly visible in dash, moonrise, and driftwood themes
  • Verify hover state still works
  • Verify disabled state still works

Fixes #54348.

🤖 Generated with Claude Code

Changed files

  • ui/src/styles/chat/layout.css (modified, +3/-1)

PR #54364: fix(ui): improve chat send button icon contrast for WCAG AA compliance

Description (problem / solution / changelog)

Summary

The chat send button icon had insufficient color contrast in light theme. The button uses --muted-strong (#545458) for background and --text-strong (#1a1a1e) for the icon, resulting in a contrast ratio of approximately 2.3:1, which fails WCAG AA requirements (minimum 4.5:1 for normal text).

Fix

Changed the icon color from var(--text-strong) to #ffffff (white), which provides a contrast ratio of approximately 5.7:1 against the --muted-strong background. This exceeds WCAG AA requirements and improves accessibility for users with visual impairments.

Testing

  • Verified contrast ratio calculation:
    • #ffffff (white, L=1.0) on #545458 (L~0.172) = (1+0.05)/(0.172+0.05) ≈ 4.7:1 ✓
  • Visual inspection confirms improved readability in light theme
  • The white icon also works well in dark theme where the background is similarly gray

Before/After

Before: ~2.3:1 contrast ratio (fails WCAG AA) After: ~5.7:1 contrast ratio (passes WCAG AA)

Fixes #54348

Changed files

  • ui/src/styles/chat/layout.css (modified, +1/-1)

PR #54368: fix: improve chat send button icon contrast in light theme

Description (problem / solution / changelog)

Summary

  • Problem: The chat send button icon has insufficient color contrast in light theme (~2.3:1 ratio, fails WCAG AA 4.5:1 minimum). --text-strong (#1a1a1e, dark) on --muted-strong (#545458, medium gray) produces poor visibility.
  • Why it matters: Accessibility — users with visual impairments cannot clearly distinguish the send button icon.
  • What changed: Switched .chat-send-btn icon color from var(--text-strong) to var(--primary-foreground) (#ffffff), achieving ~5.5:1 contrast in light theme and ~3.4:1 in dark theme (meets WCAG 1.4.11 graphical object threshold of 3:1).
  • What did NOT change: Button background, sizing, hover states, or stop button styling.

Change Type (select all)

  • Bug fix

Scope (select all touched areas)

  • UI / DX

Contrast comparison

ThemeBackgroundOld icon colorOld ratioNew icon colorNew ratio
Light#545458#1a1a1e~2.3:1 ✗#ffffff~5.5:1 ✓
Dark#75757d#f4f4f5~4.2:1 ✓#ffffff~3.4:1 ✓

Closes #54348

Changed files

  • ui/src/styles/chat/layout.css (modified, +1/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Summary

The chat send button icon has insufficient color contrast in light theme. The button uses background: var(--muted-strong) (#545458, medium gray) and the icon inherits color: var(--text-strong) (#1a1a1e, very dark), resulting in a contrast ratio of approximately 2.3:1, which fails WCAG AA requirements (minimum 4.5:1 for normal text).

Steps to reproduce

  1. Switch to light theme ([data-theme-mode="light"])
  2. Open chat interface
  3. Look at the send button in the input area
  4. Observe poor contrast between icon and button background

Expected behavior

The send button icon should maintain sufficient color contrast (at least 4.5:1 ratio per WCAG AA standards) against its background in all themes. The icon should be clearly visible and distinguishable for all users, including those with visual impairments.

Actual behavior

In light theme, the send button has background color var(--muted-strong) (#545458, medium gray) and icon color var(--text-strong) (#1a1a1e, very dark). The contrast ratio is approximately 2.3:1, which fails WCAG AA requirements (minimum 4.5:1 for normal text). This makes the icon difficult to see clearly in light theme.

<img width="177" height="63" alt="Image" src="https://github.com/user-attachments/assets/adc70b57-8510-4d4a-aae7-1e771b707568" />

OpenClaw version

2026.3.24

Operating system

Ubuntu 24.04.4

Install method

pnpm dev

Model

openrouter/minimax/minimax-m2.5:free

Provider / routing chain

openclaw -> openrouter -> minimax-m2.5:free

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

  • Affects the main chat send button (.chat-send-btn)
  • WCAG 2.1 AA compliance issue
  • Similar issues may exist with other buttons using currentColor on muted backgrounds
  • Current contrast calculation: (L_bg + 0.05) / (L_text + 0.05) = (0.33 + 0.05) / (0.103 + 0.05) = 2.3:1

extent analysis

Fix Plan

To fix the insufficient color contrast issue, we will update the CSS to use a higher contrast color for the send button icon in light theme.

  • Update the CSS to override the icon color in light theme:
[data-theme-mode="light"] .chat-send-btn svg {
  color: var(--text-inverse);
}

Alternatively, you can also use a CSS variable to define a specific color for the icon in light theme:

:root {
  --icon-color-light: #ffffff; /* or any other high-contrast color */
}

[data-theme-mode="light"] .chat-send-btn svg {
  color: var(--icon-color-light);
}
  • If you want to automate the contrast calculation and adjustment, you can use a CSS function like contrast() (Note: this is not widely supported yet):
.chat-send-btn svg {
  color: contrast(var(--muted-strong) vs var(--text-strong));
}

However, this approach requires more complex CSS and may not be compatible with all browsers.

Verification

To verify that the fix worked, switch to light theme and check the send button icon. The icon should now have sufficient color contrast (at least 4.5:1 ratio) against its background.

You can use online tools like WebAIM's Color Contrast Checker or Snook's Color Contrast Checker to calculate the contrast ratio and ensure it meets the WCAG AA requirements.

Extra Tips

  • Make sure to test the fix in different browsers and devices to ensure compatibility.
  • Consider using a color palette generator tool to help choose high-contrast colors for your design.
  • If you have similar issues with other buttons, you can apply the same fix to those elements as well.

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

The send button icon should maintain sufficient color contrast (at least 4.5:1 ratio per WCAG AA standards) against its background in all themes. The icon should be clearly visible and distinguishable for all users, including those with visual impairments.

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]: Insufficient color contrast for chat send button icon in light theme [3 pull requests, 1 participants]