Skip to content

Commit

Permalink
Fix dialog CSS to prevent tooltip issues (#2706)
Browse files Browse the repository at this point in the history
Co-authored-by: camertron <camertron@users.noreply.github.com>
Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 18, 2024
1 parent 90192bb commit 60c5f01
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/brave-cougars-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@primer/view-components": patch
---

Fix dialog CSS to prevent tooltip issues

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions app/components/primer/alpha/dialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ dialog.Overlay:not([open]) {
opacity: 0;
}

/* hacks until firefox fully supports popovers */
:where([popover]:not(.\:popover-open)) {
display: none !important;
}

:popover-open {
display: inherit !important;
/* This is for @oddbird/popover-polyfill;
* A FOUC occurs in browsers which do not support :popover-open.
* We can try to hide the popover if :popover-open is not supported.
*/
@supports not selector(:popover-open) {
[popover]:not(.\:popover-open) {
display: none;
}
}

.Overlay {
Expand Down

0 comments on commit 60c5f01

Please sign in to comment.