Skip to content

Conversation

@arvindrk
Copy link
Member

@arvindrk arvindrk commented Oct 4, 2025

Fix: Isolate Widget CSS to Prevent Host Page Style Conflicts

Problem

Widget's global CSS (especially Tailwind base reset) was injecting into host pages and overriding their styles, causing conflicts and breaking host page layouts.

Solution

Implemented selector-based CSS scoping. All widget styles are now scoped to .vapi-widget-wrapper container.

CSS Generation

Before: .flex { display: flex; } (global, affects host page)
After: .vapi-widget-wrapper .flex { display: flex !important; } (scoped, isolated)

@arvindrk arvindrk merged commit 1b8ef55 into main Oct 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant