Skip to content

Commit

Permalink
fix(theme): fix firefox CSS :has() support bug (#9530)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 30, 2023
1 parent ca7a279 commit d019fc6
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 d019fc6

Please sign in to comment.