docs: add note for aria + data with Tailwind CSS (#2137)

Fixes https://github.com/denoland/fresh/issues/2123
This commit is contained in:
Marvin Hagemeister
2023-12-04 12:31:52 +01:00
committed by GitHub
parent 96644f5e22
commit 993f1020b6
@@ -105,7 +105,13 @@ That's it! Now you can use Tailwind CSS in your project.
> [warn]: Tailwind CSS doesn't support the grouping syntax from twind:
> `text(lg uppercase gray-100)`. These need to be rewritten to their expanded
> values like `text-lg uppercase text-gray-100`.
> values like `text-lg uppercase text-gray-100`. Selecting `data-*` or `aria-*`
> attributes works a little different with Tailwind CSS as well.
>
> | Twind | Tailwind CSS |
> | --------------------------- | --------------------------- |
> | `[data-current]:bg-red-600` | `data-[current]:bg-red-300` |
> | `[aria-current]:bg-red-600` | `aria-[current]:bg-red-300` |
## Frequently Asked Questions (FAQ)