You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Front Chat widget sets color-scheme: normal on its container/iframe, which prevents it from properly inheriting the page's color scheme. This causes visual issues when embedding the widget in pages that use dark mode or have color-scheme: light dark set.
Expected Behavior
The widget should respect the embedding page's color scheme by using color-scheme: light dark instead of color-scheme: normal.
Current Behavior
The widget always renders with a forced color scheme that doesn't adapt to the page context, causing color mismatches and visual inconsistencies.
Impact
This bug is currently blocking a GitBook integration PR that has been waiting for months:
Description
The Front Chat widget sets
color-scheme: normalon its container/iframe, which prevents it from properly inheriting the page's color scheme. This causes visual issues when embedding the widget in pages that use dark mode or havecolor-scheme: light darkset.Expected Behavior
The widget should respect the embedding page's color scheme by using
color-scheme: light darkinstead ofcolor-scheme: normal.Current Behavior
The widget always renders with a forced color scheme that doesn't adapt to the page context, causing color mismatches and visual inconsistencies.
Impact
This bug is currently blocking a GitBook integration PR that has been waiting for months:
<head>to<body>per Front's documentation)Suggested Fix
Change the CSS property from:
To:
This allows the widget to support both light and dark color schemes based on the embedding context.
Workaround
Until this is fixed in
chat.bundle.js, consumers can inject a CSS override:References
https://chat-assets.frontapp.com/v1/chat.bundle.js