Skip to content

Commit

Permalink
Fix firefox CSS :has() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 10, 2023
1 parent e494f16 commit 2da1606
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@
Workaround to avoid rendering empty search container
See https://github.com/facebook/docusaurus/pull/9385
*/
.navbarSearchContainer:not(:has(> *)) {
display: none;
/*
TODO temporary @supports check, remove before 2025
only needed for Firefox < 121
see https://github.com/facebook/docusaurus/issues/9527#issuecomment-1805272379
*/
@supports selector(:has(*)) {
.navbarSearchContainer:not(:has(> *)) {
display: none;
}
}

@media (max-width: 996px) {
Expand Down

0 comments on commit 2da1606

Please sign in to comment.