Skip to content

Commit

Permalink
Query Filter: Don't display by default in mobile viewports (#571)
Browse files Browse the repository at this point in the history
The Query Filter block should be hidden by default for mobile viewports, to avoid a white flash during load.
  • Loading branch information
dd32 authored Feb 9, 2024
1 parent 0997624 commit a14fdd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mu-plugins/blocks/query-filter/src/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,12 @@
}

.wporg-query-filter__modal-backdrop {
display: none;
background-color: rgba(0, 0, 0, 0.15);
}

.wporg-query-filter__modal {
display: none;
position: fixed;
top: 20vh;
bottom: 20vh;
Expand Down Expand Up @@ -300,6 +302,10 @@


.is-modal-open {
& .wporg-query-filter__modal {
display: block;
}

& .wporg-query-filter__modal-backdrop {
display: block;
}
Expand Down

0 comments on commit a14fdd0

Please sign in to comment.