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 commit updates the CSS files to use single quotes for attribute
selectors. This ensures consistency and avoids potential issues with
double quotes in attribute values.
/* Importing Tailwind this way opts us out of CSS layers (reasoning: https://github.com/tailwindlabs/tailwindcss/discussions/13188#discussion-6352337) */
3
-
@import'tailwindcss/theme.css' prefix(yv); /* The CSS linter error is a known issue and does not affect functionality */
2
+
3
+
/*
4
+
* Tailwind v4 CSS Layer Opt-Out
5
+
* ==============================
6
+
* By default, Tailwind v4 wraps styles in CSS @layer directives. This causes
7
+
* specificity issues when consumers embed our SDK components alongside their
8
+
* own CSS—the consumer's non-layered styles can unexpectedly override our
9
+
* Tailwind utilities.
10
+
*
11
+
* Solution: Import Tailwind's CSS files separately instead of using
12
+
* `@import 'tailwindcss'`. This is Tailwind's officially supported method
13
+
* to opt out of CSS layers.
14
+
*
15
+
* The `prefix(yv)` ensures all Tailwind classes use a `yv-` prefix to avoid
0 commit comments