Skip to content
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

Update popover.css #64

Merged
merged 4 commits into from
Jan 19, 2023
Merged

Update popover.css #64

merged 4 commits into from
Jan 19, 2023

Conversation

keithamus
Copy link
Collaborator

@keithamus keithamus commented Jan 19, 2023

Description

This fixes a slight issue with native popups, which remain display: none because [popup]:not(.\:open) is always true for those popups.

To fix this issue this adds [popup]:not(.\:open, :open) . In other words apply this style only if the element has neither the .\:open class nor the :open psuedo selector. (This didn't work!)

To fix this issue this wraps the [popup]:not(.\:open) selector in a @supports not selector([popover]:open) . In other words apply this style only if the element isn't a native popover.

I've tested the example page in both Chrome and Firefox, and Chrome with Experimental Web Platform features enabled.

Steps to test/reproduce

Try running the demo in Chrome with Experimental Web Technology enabled.

Show me

Provide screenshots/animated gifs/videos if necessary.

image

REMEMBER: Attach this PR to the Trello card

@keithamus
Copy link
Collaborator Author

@jgerigmeyer / @sanajaved7 I've included the 0.0.7 commit with this one. If you would kindly publish this one that'd be swell 🥰

@keithamus

This comment was marked as outdated.

* main:
  update changelog
  format code style
  simpler condition
  fix(src): remove stop propagation to allow handlers
@jgerigmeyer jgerigmeyer merged commit d1be162 into main Jan 19, 2023
@jgerigmeyer jgerigmeyer deleted the css-fix-native branch January 19, 2023 16:55
@jgerigmeyer
Copy link
Member

@jgerigmeyer / @sanajaved7 I've included the 0.0.7 commit with this one. If you would kindly publish this one that'd be swell 🥰

@keithamus I just published v0.0.7 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants