From 3cbfed2b66a11649bd89cb7ff39a78f0700b82bf Mon Sep 17 00:00:00 2001 From: oyelowo Date: Tue, 10 Oct 2023 12:27:30 -0600 Subject: [PATCH] Support group-aria --- tailwind/src/main.rs | 5 +++++ tw-macro/src/lib.rs | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tailwind/src/main.rs b/tailwind/src/main.rs index 978ff15..09dfd60 100644 --- a/tailwind/src/main.rs +++ b/tailwind/src/main.rs @@ -55,6 +55,11 @@ after:content-['*'] after:ml-0.5 after:text-red-500 block text-sm font-medium te aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-[url('/img/up-arrow.svg')] + + group-aria-[sort=ascending]:rotate-0 group-aria-[sort=descending]:rotate-180 + + data-[size=large]:p-8 + "# ); // let test = diff --git a/tw-macro/src/lib.rs b/tw-macro/src/lib.rs index eec51bb..1457907 100644 --- a/tw-macro/src/lib.rs +++ b/tw-macro/src/lib.rs @@ -992,6 +992,7 @@ fn supports_arbitrary(input: &str) -> IResult<&str, ()> { // aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] // aria-[sort=descending]:bg-[url('/img/up-arrow.svg')] fn aria_arbitrary(input: &str) -> IResult<&str, ()> { + let (input, _) = opt(tag("group-"))(input)?; let (input, _) = tag("aria-[")(input)?; let (input, _) = take_while1(is_ident_char)(input)?; let (input, _) = tag("=")(input)?; @@ -1003,9 +1004,6 @@ fn aria_arbitrary(input: &str) -> IResult<&str, ()> { // // // -// aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-[url('/img/up-arrow.svg')] -// group-aria-[sort=ascending]:rotate-0 group-aria-[sort=descending]:rotate-180 -// data-[size=large]:p-8 // open:bg-white dark:open:bg-slate-900 open:ring-1 open:ring-black/5 dark:open:ring-white/10 open:shadow-lg p-6 rounded-lg // lg:[&:nth-child(3)]:hover:underline // min-[320px]:text-center max-[600px]:bg-sky-300