Skip to content

Commit

Permalink
Block Styles: Allow the card-grid to work with a wp:post-template blo…
Browse files Browse the repository at this point in the history
…ck as part of a wp:query
  • Loading branch information
dd32 authored Mar 15, 2024
1 parent 7d094a0 commit 2e61c84
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@
}
}

.wp-block-group-is-layout-grid.is-style-cards-grid {
.wp-block-group-is-layout-grid.is-style-cards-grid,
.wp-block-post-template.is-style-cards-grid {
grid-auto-rows: 1fr;

@include break-small-only() {
Expand Down Expand Up @@ -238,7 +239,8 @@
}
}

> a {
> a /* .wp-block-group-is-layout-grid */,
> li /* .wp-block-post-template */ {
h2,
h3,
h4,
Expand Down

0 comments on commit 2e61c84

Please sign in to comment.