-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add :popover-open
variant
#12148
Add :popover-open
variant
#12148
Conversation
7188384
to
c0dd091
Compare
a7e03e8
to
4291d1e
Compare
I can see that all major browsers will soon support this now (caniuse). It's behind a feature flag in FF and is currently being tested in Safari TP. I think it could be a great idea to get this in soon so it's ready for release. Popovers are a great new addition to the web platform, and it would be awesome to add support for pseudos like this to be able to take advantage of such new features in Tailwind CSS. Thanks, @lukewarlow! Fan of this 🙌🏼 |
Just a minor correction it's actually in Safari 17, MDN is incorrect. |
Weird, my computer isn't letting me update to Safari 17, so I figured it was still in TP, but maybe it's live? |
Safari 17 is definitely available. Has been for a little over 2 weeks. Works on Monterey, Ventura, and Sonoma but I'd imagine only if you're on the latest version of each. Make sure you're updated? Also I'd verify that you don't have a beta development profile (or in later macOS versions have beta updates enabled in Settings) |
4291d1e
to
c8c2504
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌👌
This should be up to date with latest master now (have rebased). Let me know if there's anything else I should do. |
Thanks for this! Going to target v4 with this one instead, have opened a new PR and added you as a co-author here: |
:popover-open
is used to style elements with thepopover
attribute when they're open.This is supported in Chromium 114, Safari 17, and Firefox 125.