Skip to content

Commit 03f5ad3

Browse files
Fix legacy syntax to avoid warnings in CSS file
1 parent 86dfcd2 commit 03f5ad3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/blog/headless-ui-v2/examples/HeadlessUIV2Examples.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function ComboboxExample() {
157157
leaveTo="opacity-0"
158158
afterLeave={() => setQuery("")}
159159
>
160-
<ComboboxOptions className="mt-2 max-h-60 w-[--input-width] overflow-y-auto rounded-xl border border-gray-200 bg-white p-1 backdrop-blur empty:invisible dark:border-white/5 dark:bg-white/5">
160+
<ComboboxOptions className="mt-2 max-h-60 w-(--input-width) overflow-y-auto rounded-xl border border-gray-200 bg-white p-1 backdrop-blur empty:invisible dark:border-white/5 dark:bg-white/5">
161161
{({ option: person }) => (
162162
<ComboboxOption
163163
key={person.id}

src/blog/tailwindcss-v3-3/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export function MyComponent({ company }) {
672672
"--brand-hover-color": company.brandHoverColor,
673673
}}
674674
className="bg-[var(--brand-color)] hover:bg-[var(--brand-hover-color)]" // [!code --]
675-
className="bg-[--brand-color] hover:bg-[--brand-hover-color]" // [!code ++]
675+
className="bg-(--brand-color) hover:bg-(--brand-hover-color)" // [!code ++]
676676
/>
677677
);
678678
}

src/docs/font-family.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ If needed, use the [@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS
106106
If you're loading a font from a service like [Google Fonts](https://fonts.google.com/), make sure to put the `@import` at the very top of your CSS file:
107107

108108
```css
109-
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); /* [!code highlight] */
109+
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap"); /* [!code highlight] */
110110
@import "tailwindcss";
111111

112112
@theme {
113-
--font-roboto: 'Roboto', sans-serif; /* [!code highlight] */
113+
--font-roboto: "Roboto", sans-serif; /* [!code highlight] */
114114
}
115115
```
116116

0 commit comments

Comments
 (0)