Skip to content

Commit d544f64

Browse files
authoredDec 12, 2024··
refactor(Pagination): update syntax in media query (#5428)
* Update Pagination.module.css * refactor: update names and media queries * chore: add changeset
1 parent a9c45f4 commit d544f64

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
 

‎.changeset/nervous-guests-cheer.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Update Pagination CSS syntax to help with parsing downstream

‎packages/react/src/Pagination/Pagination.module.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
font-style: normal;
88
/* stylelint-disable-next-line primer/typography */
99
line-height: 1;
10-
color: var(----fgColor-default);
10+
color: var(--fgColor-default);
1111
text-align: center;
1212
text-decoration: none;
1313
white-space: nowrap;
@@ -128,7 +128,7 @@
128128
text-align: center;
129129
}
130130

131-
@media ((max-width: calc(768px - 0.02px))) {
131+
@media screen and (--viewportRange-narrow) {
132132
.TablePaginationSteps[data-hidden-viewport-ranges*='narrow'] > *:not(:first-child):not(:last-child) {
133133
display: none;
134134
}
@@ -142,7 +142,7 @@
142142
}
143143
}
144144

145-
@media ((min-width: 768px)) {
145+
@media screen and (--viewportRange-regular) {
146146
.TablePaginationSteps[data-hidden-viewport-ranges*='regular'] > *:not(:first-child):not(:last-child) {
147147
display: none;
148148
}
@@ -156,7 +156,7 @@
156156
}
157157
}
158158

159-
@media ((min-width: 1400px)) {
159+
@media screen and (--viewportRange-wide) {
160160
.TablePaginationSteps[data-hidden-viewport-ranges*='wide'] > *:not(:first-child):not(:last-child) {
161161
display: none;
162162
}

0 commit comments

Comments
 (0)
Please sign in to comment.