Repository navigation
fix(agents-ui): keep visualizers and indicators visible in forced colors mode - #1550
Open
bganderson95 wants to merge 1 commit into
Open
bganderson95 wants to merge 1 commit into
bganderson95 wants to merge 1 commit into
Conversation
bganderson95
requested review from
1egoman,
lukasIO and
thomasyuill-livekit
as code owners
December 3, 2026 14:22
|
@bganderson95 is attempting to deploy a commit to the LiveKit Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
No linked issue. In forced colors mode (Windows High Contrast), the Bar, Grid and Radial visualizers,
AgentChatIndicator, and the popup trigger's connecting ring disappear. Every dot is drawn withbackground-color, which forced colors mode overrides, so someone using a high contrast theme gets no sign of whether the agent is connecting, listening, thinking or speaking.Overview
Each affected element opts out with
forced-color-adjust: noneand paints itself in system colors, so it follows the user's theme instead of the app's palette. In the visualizers, highlighted cells are solidCanvasTextand the rest areCanvasTextoutlines. I first triedGrayTextfor the dim cells, but high contrast themes define it as a saturated color (dark red in the light theme, bright green in the dark one), so lit and dim cells only differed by hue. Solid against hollow differs by shape, which works in any theme.While testing, I also found the trigger's idle bot icon disappearing in dark high contrast themes. Its color comes from
contrast-color()on the brand color, and SVGs keep that color in forced colors mode, so it stayed black on black. It now usesCanvasTextthere.Nothing changes outside forced colors mode.
Summary of changes
agent-audio-visualizer-bar.tsx,agent-audio-visualizer-grid.tsx,agent-audio-visualizer-radial.tsxforced-colors, highlighted cells are solidCanvasTextand the rest are outlines.agent-chat-indicator.tsxforced-colors, the dot is solidCanvasText.trigger.tsx(agent-popup-01)forced-colors, the connecting ring and the idle bot icon useCanvasText..changeset/patchchangeset for@livekit/agents-ui.Testing
pnpm --filter @livekit/agents-ui test: 375 tests pass.Before (forced colors, current
main):After, light and dark high contrast themes:
Default rendering, unchanged: