Skip to content

Commit

Permalink
fix: #1899, separate has() selectors to fix Firefox issue ignoring th…
Browse files Browse the repository at this point in the history
…em all
  • Loading branch information
saadeghi committed Jun 7, 2023
1 parent 14e52dd commit c265191
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/unstyled/collapse.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
}
.collapse[open],
.collapse-open,
.collapse:focus:not(.collapse-close),
.collapse:focus:not(.collapse-close) {
grid-template-rows: auto 1fr;
}
.collapse:not(.collapse-close):has(input[type="checkbox"]:checked),
.collapse:not(.collapse-close):has(input[type="radio"]:checked) {
grid-template-rows: auto 1fr;
Expand Down
6 changes: 4 additions & 2 deletions src/utilities/styled/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
}
.tooltip.tooltip-open:before,
.tooltip.tooltip-open:after,
.tooltip:has(:focus-visible):after,
.tooltip:has(:focus-visible):before,
.tooltip:hover:before,
.tooltip:hover:after {
@apply opacity-100 delay-75;
}
.tooltip:has(:focus-visible):after,
.tooltip:has(:focus-visible):before {
@apply opacity-100 delay-75;
}
.tooltip:not([data-tip]):hover:before,
.tooltip:not([data-tip]):hover:after {
visibility: hidden;
Expand Down

0 comments on commit c265191

Please sign in to comment.