Skip to content

Commit

Permalink
[Block Library - Query Pagination]: Fix center alignment (#34739)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Sep 10, 2021
1 parent f7e057b commit 8e4ebfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/query-pagination/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ $pagination-margin: 0.5em;
flex-direction: row;
}

// Center flex items. This has an equivalent in style.scss.
.wp-block[data-align="center"] > .wp-block-query-pagination {
justify-content: center;
}

.editor-styles-wrapper {
.wp-block-query-pagination {
max-width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/query-pagination/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ $pagination-margin: 0.5em;
transform: scaleX(1) #{"/*rtl:scaleX(-1);*/"}; // This points the arrow right for LTR and left for RTL.
}
}

&.aligncenter {
justify-content: center;
}
}

0 comments on commit 8e4ebfa

Please sign in to comment.