Skip to content

Fix: Resolve transparent UI issue in Copilot Light Mode#2768

Open
taeminlee wants to merge 1 commit intoChainlit:mainfrom
taeminlee:copilot_light_fix
Open

Fix: Resolve transparent UI issue in Copilot Light Mode#2768
taeminlee wants to merge 1 commit intoChainlit:mainfrom
taeminlee:copilot_light_fix

Conversation

@taeminlee
Copy link
Contributor

@taeminlee taeminlee commented Jan 26, 2026

Description:

This PR fixes an issue where the Chainlit Copilot UI appeared transparent when using Light Mode.

Problem:

The CSS variables for the default theme (Light Mode) were targeting the #shadow-root-container ID, but the actual container element uses the ID #cl-shadow-root. As a result, the base styles were not being applied, causing transparency issues. Dark Mode was unaffected as it relies on class-specific overrides, though the selector needed refinement there as well.

image (before)

Changes:

  • Updated the CSS selector from #shadow-root-container to #cl-shadow-root to correctly target the Copilot container.
  • Applied the base CSS variables to #cl-shadow-root as the default (Light Mode) state.
  • Refactored .dark to #cl-shadow-root.dark to strictly scope the dark theme styles to the shadow root container.

Verification:

I have verified that the UI renders correctly in both Light and Dark modes with these changes.

image (after)

Summary by cubic

Fixes Copilot transparency in Light Mode by applying base CSS variables to the correct shadow root container. Dark Mode styles are scoped to the container for consistent theming.

  • Bug Fixes
    • Target #cl-shadow-root for base (Light Mode) variables.
    • Scope dark theme to #cl-shadow-root.dark; add #cl-shadow-root.light for explicit theming.
    • Verified correct rendering in both Light and Dark modes.

Written for commit 4cf9655. Summary will update on new commits.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. frontend Pertains to the frontend. labels Jan 26, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@github-actions
Copy link

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Pertains to the frontend. size:XS This PR changes 0-9 lines, ignoring generated files. stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant