Replies: 6 comments 8 replies
-
Yeah I think this is a great idea and something we want to explore, I mentioned the same thing here: |
Beta Was this translation helpful? Give feedback.
-
Ah brilliant, sorry I looked but must of missed that one. Great minds hey!
Looking forward to it! Cheers.
…On Thu, 24 Feb 2022, 16:00 Adam Wathan, ***@***.***> wrote:
Yeah I think this is a great idea and something we want to explore, I
mentioned the same thing here:
#7547 (comment)
<#7547 (comment)>
—
Reply to this email directly, view it on GitHub
<#7639 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANQPJ46WE726XXQRKQ3FYLU4ZIYPANCNFSM5PHPSHPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I just developed a new plugin very similar to this one that has all Tailwind 3 features. Check it out here: https://github.com/onmax/tailwindcss-labeled-groups |
Beta Was this translation helpful? Give feedback.
-
Hey! Good news — we just added nested group and multiple peer support using variant modifiers in Tailwind CSS v3.2 🥳 You can read about it in our announcement blog post, but for quick reference here’s what it looks like: <div class="group/sidebar ...">
<!-- ... -->
<div class="group/navitem ...">
<a
href="#"
class="opacity-50 group-hover/sidebar:opacity-75 group-hover/navitem:bg-black/75"
>
<!-- ... -->
</a>
</div>
<!-- ... -->
</div> This lets you give each group a clear name that makes sense for that context on the fly, and Tailwind will generate the necessary CSS to make it work. |
Beta Was this translation helpful? Give feedback.
-
Thank you so good to use it ! |
Beta Was this translation helpful? Give feedback.
-
this needs to be better highlighted in the documentation its really useful |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I like to use group-hover but the lack of nesting makes me reach for js often. I know there's a tw plugin for nested groups but it's a bit much sometimes.
I'm wondering if it's possible to have named groups, much like the arbitrary variables, eg:
group-[mygroup]
. Then we could later usegroup-[mygroup]-hover:opacity-100
?Not sure if there's technical reasons it's not possible but it seems like an elegant solution if it could work.
Beta Was this translation helpful? Give feedback.
All reactions