Skip to content

Commit

Permalink
Support group-aria
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Oct 10, 2023
1 parent 2766715 commit 3cbfed2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions tailwind/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
4 changes: 1 addition & 3 deletions tw-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand All @@ -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
Expand Down

0 comments on commit 3cbfed2

Please sign in to comment.