Skip to content

Commit ad12a94

Browse files
committed
Fix pagination dark mode display issue
1 parent 49f5115 commit ad12a94

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

resources/css/app.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,42 @@
1414

1515
@custom-variant dark (&:where(.dark, .dark *));
1616

17+
/*
18+
Force pagination to always use light mode styles
19+
This overrides any dark mode classes on pagination components
20+
Safe from Laravel updates and requires zero maintenance
21+
*/
22+
@layer utilities {
23+
nav[role="navigation"][aria-label*="Pagination"] *,
24+
nav[aria-label="Pagination Navigation"] * {
25+
--tw-bg-opacity: 1 !important;
26+
--tw-text-opacity: 1 !important;
27+
--tw-border-opacity: 1 !important;
28+
}
29+
30+
/* Force light backgrounds on pagination elements */
31+
nav[role="navigation"][aria-label*="Pagination"] span,
32+
nav[role="navigation"][aria-label*="Pagination"] a,
33+
nav[aria-label="Pagination Navigation"] span,
34+
nav[aria-label="Pagination Navigation"] a {
35+
background-color: rgb(255 255 255) !important;
36+
border-color: rgb(209 213 219) !important;
37+
}
38+
39+
/* Force light text colors */
40+
nav[role="navigation"][aria-label*="Pagination"] span,
41+
nav[role="navigation"][aria-label*="Pagination"] a,
42+
nav[aria-label="Pagination Navigation"] span,
43+
nav[aria-label="Pagination Navigation"] a {
44+
color: rgb(55 65 81) !important;
45+
}
46+
47+
/* Disabled state colors */
48+
nav[role="navigation"][aria-label*="Pagination"] span[aria-disabled="true"],
49+
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] {
50+
color: rgb(156 163 175) !important;
51+
}
52+
}
1753
/*
1854
The default border color has changed to `currentcolor` in Tailwind CSS v4,
1955
so we've added these compatibility styles to make sure everything still

0 commit comments

Comments
 (0)