-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Package / CDN: @vapi-ai/client-sdk-react
(widget.umd.js)
Widget version: 0.6.0 (CDN at unpkg.com
as of 2025-07-07)
Host platform: Odoo 16 Website
Browser: Chrome 124, Firefox 140
1️⃣ Steps to reproduce
-
Create a blank Odoo website page that uses the default Odoo theme (Poppins / Montserrat).
-
Paste the official snippet in a raw HTML block just before
<script src="https://unpkg.com/@vapi-ai/client-sdk-react/dist/embed/widget.umd.js" async></script></body>
: ```html<vapi-widget
public-key="p-k"
assistant-id="a-i"
mode="chat"
size="full">
-
Reload the page.
2️⃣ Actual behaviour
-
The body font switches from the theme font to the browser default sans-serif.
-
All
<h1>…<h6>
elements lose their default sizes/weights (Tailwind Preflight sets them toinherit
). -
Buttons/inputs get Tailwind style normalisations (border-radius removed, font family changed, etc.).
Inspecting the DOM shows a <style>
tag injected by the widget that contains Tailwind v3 Preflight.
Because it is appended after Odoo’s asset bundles, its rules win the cascade and restyle the whole site.
3️⃣ Expected behaviour
Embedding the widget should not alter global typography or reset HTML elements on the host page.
All visual changes should be limited to the widget itself.