Skip to content

Commit aae6dee

Browse files
vk17-starlordvk17-starlordt-hamanocbravobernaliamtakashi
authored
Comments Pagination: Remove unwanted bottom margin from links (#70360)
* fix: remove bottom margin from comments pagination numbers * fix: remove unnecessary blank line in comments pagination styles * fix: clean up comments pagination styles by removing unnecessary margins to let global styles override the block styles * fix: remove unnecessary margin styles from comments pagination component * fix: add missing styles for comments pagination component Co-authored-by: vk17-starlord <vineet2003@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org> Co-authored-by: iamtakashi <iamtakashi@git.wordpress.org>
1 parent c547f4d commit aae6dee

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

‎packages/block-library/src/comments-pagination/editor.scss‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,13 @@ $pagination-margin: 0.5em;
88
:where(.editor-styles-wrapper) {
99
.wp-block-comments-pagination {
1010
max-width: 100%;
11-
&.block-editor-block-list__layout {
12-
margin: 0;
13-
}
1411
}
1512
}
1613

1714
.wp-block-comments-pagination {
1815
> .wp-block-comments-pagination-next,
1916
> .wp-block-comments-pagination-previous,
2017
> .wp-block-comments-pagination-numbers {
21-
// Override editor auto block margins.
22-
margin-left: 0;
23-
margin-top: $pagination-margin;
24-
25-
/*rtl:ignore*/
26-
margin-right: $pagination-margin;
27-
margin-bottom: $pagination-margin;
28-
2918
font-size: inherit;
30-
&:last-child {
31-
/*rtl:ignore*/
32-
margin-right: 0;
33-
}
3419
}
3520
}

‎packages/block-library/src/comments-pagination/style.scss‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@ $pagination-margin: 0.5em;
44
> .wp-block-comments-pagination-next,
55
> .wp-block-comments-pagination-previous,
66
> .wp-block-comments-pagination-numbers {
7-
/*rtl:ignore*/
8-
margin-right: $pagination-margin;
9-
margin-bottom: $pagination-margin;
10-
117
font-size: inherit;
12-
&:last-child {
13-
/*rtl:ignore*/
14-
margin-right: 0;
15-
}
168
}
179
.wp-block-comments-pagination-previous-arrow {
1810
margin-right: 1ch;

0 commit comments

Comments
 (0)