Skip to content

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/daisyui/src/components/divider.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
.divider {
22
@apply flex h-4 flex-row items-center self-stretch whitespace-nowrap;
33
margin: var(--divider-m, 1rem 0);
4+
/*
5+
used --divider-color to avoid this issue
6+
https://github.com/tailwindlabs/tailwindcss/issues/17556
7+
https://lightningcss.dev/playground/index.html#%7B%22minify%22%3Afalse%2C%22customMedia%22%3Atrue%2C%22cssModules%22%3Afalse%2C%22analyzeDependencies%22%3Afalse%2C%22targets%22%3A%7B%22chrome%22%3A6225920%7D%2C%22include%22%3A0%2C%22exclude%22%3A0%2C%22source%22%3A%22.broken%20%7B%5Cn%20%20%26%3A%3Abefore%2C%20%26%3A%3Aafter%20%7B%5Cn%20%20%20%20background%3A%20blue%3B%5Cn%20%20%20%20%40media%20print%20%7B%5Cn%20%20%20%20%20%20background%3A%20orange%3B%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%5Cn.fine%20%7B%5Cn%20%20%26%3A%3Abefore%2C%20%26%3A%3Aafter%20%7B%5Cn%20%20%20%20background%3A%20blue%3B%5Cn%20%20%7D%5Cn%7D%22%2C%22visitorEnabled%22%3Afalse%2C%22visitor%22%3A%22%7B%5Cn%20%20Color(color)%20%7B%5Cn%20%20%20%20if%20(color.type%20%3D%3D%3D%20'rgb')%20%7B%5Cn%20%20%20%20%20%20color.g%20%3D%200%3B%5Cn%20%20%20%20%20%20return%20color%3B%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%22%2C%22unusedSymbols%22%3A%5B%5D%2C%22version%22%3A%22local%22%7D
8+
https://github.com/tailwindlabs/tailwindcss/pull/17562
9+
*/
10+
--divider-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
411

512
&:before,
613
&:after {
714
content: "";
8-
@apply bg-base-content/10 h-0.5 w-full grow;
15+
@apply h-0.5 w-full grow;
16+
background-color: var(--divider-color);
917
}
1018
@media print {
1119
&:before,

0 commit comments

Comments
 (0)