From 7d51a9e479cb6105ea37759c5cd67ff9f7702c49 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 6 May 2025 17:36:46 +0200 Subject: [PATCH] fix(Calendar): wrong color for today date with `neutral` color Resolves #4084 Possible regression of #3629 --- src/theme/calendar.ts | 2 +- .../__snapshots__/Calendar-vue.spec.ts.snap | 84 +++++++++---------- .../__snapshots__/Calendar.spec.ts.snap | 84 +++++++++---------- 3 files changed, 85 insertions(+), 85 deletions(-) diff --git a/src/theme/calendar.ts b/src/theme/calendar.ts index ba3ec638..4b192c1b 100644 --- a/src/theme/calendar.ts +++ b/src/theme/calendar.ts @@ -22,7 +22,7 @@ export default (options: Required) => ({ }])), neutral: { headCell: 'text-highlighted', - cellTrigger: 'focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-inverted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10' + cellTrigger: 'focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-highlighted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10' } }, size: { diff --git a/test/components/__snapshots__/Calendar-vue.spec.ts.snap b/test/components/__snapshots__/Calendar-vue.spec.ts.snap index 84a7eae3..a54e4f64 100644 --- a/test/components/__snapshots__/Calendar-vue.spec.ts.snap +++ b/test/components/__snapshots__/Calendar-vue.spec.ts.snap @@ -389,140 +389,140 @@ exports[`Calendar > renders with color neutral correctly 1`] = ` -
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
-
9
+
9
-
10
+
10
-
11
+
11
-
12
+
12
-
13
+
13
-
14
+
14
-
15
+
15
-
16
+
16
-
17
+
17
-
18
+
18
-
19
+
19
-
20
+
20
-
21
+
21
-
22
+
22
-
23
+
23
-
24
+
24
-
25
+
25
-
26
+
26
-
27
+
27
-
28
+
28
-
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
diff --git a/test/components/__snapshots__/Calendar.spec.ts.snap b/test/components/__snapshots__/Calendar.spec.ts.snap index de8a4096..83df242f 100644 --- a/test/components/__snapshots__/Calendar.spec.ts.snap +++ b/test/components/__snapshots__/Calendar.spec.ts.snap @@ -389,140 +389,140 @@ exports[`Calendar > renders with color neutral correctly 1`] = ` -
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8
-
9
+
9
-
10
+
10
-
11
+
11
-
12
+
12
-
13
+
13
-
14
+
14
-
15
+
15
-
16
+
16
-
17
+
17
-
18
+
18
-
19
+
19
-
20
+
20
-
21
+
21
-
22
+
22
-
23
+
23
-
24
+
24
-
25
+
25
-
26
+
26
-
27
+
27
-
28
+
28
-
29
+
29
-
30
+
30
-
31
+
31
-
1
+
1
-
2
+
2
-
3
+
3
-
4
+
4
-
5
+
5
-
6
+
6
-
7
+
7
-
8
+
8