From 993f1020b6528452ca0df4e8b492fd09eaa63811 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 4 Dec 2023 12:31:52 +0100 Subject: [PATCH] docs: add note for aria + data with Tailwind CSS (#2137) Fixes https://github.com/denoland/fresh/issues/2123 --- docs/latest/examples/migrating-to-tailwind.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/latest/examples/migrating-to-tailwind.md b/docs/latest/examples/migrating-to-tailwind.md index 4c61756b..b0779e33 100644 --- a/docs/latest/examples/migrating-to-tailwind.md +++ b/docs/latest/examples/migrating-to-tailwind.md @@ -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)