File tree Expand file tree Collapse file tree 10 files changed +50
-20
lines changed
static/usage/v8/datetime/highlightedDates Expand file tree Collapse file tree 10 files changed +50
-20
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,25 @@ export class ExampleComponent {
14
14
date: ' 2023-01-05' ,
15
15
textColor: ' #800080' ,
16
16
backgroundColor: ' #ffc0cb' ,
17
+ border: ' 1px solid #e91e63' ,
17
18
},
18
19
{
19
20
date: ' 2023-01-10' ,
20
21
textColor: ' #09721b' ,
21
22
backgroundColor: ' #c8e5d0' ,
23
+ border: ' 1px solid #4caf50' ,
22
24
},
23
25
{
24
26
date: ' 2023-01-20' ,
25
- textColor: ' var(--ion-color-secondary-contrast)' ,
26
- backgroundColor: ' var(--ion-color-secondary)' ,
27
+ textColor: ' var(--ion-color-secondary)' ,
28
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
29
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
27
30
},
28
31
{
29
32
date: ' 2023-01-23' ,
30
33
textColor: ' rgb(68, 10, 184)' ,
31
34
backgroundColor: ' rgb(211, 200, 229)' ,
35
+ border: ' 1px solid rgb(103, 58, 183)' ,
32
36
},
33
37
];
34
38
}
Original file line number Diff line number Diff line change 31
31
date : '2023-01-05' ,
32
32
textColor : '#800080' ,
33
33
backgroundColor : '#ffc0cb' ,
34
+ border : '1px solid #e91e63' ,
34
35
} ,
35
36
{
36
37
date : '2023-01-10' ,
37
38
textColor : '#09721b' ,
38
39
backgroundColor : '#c8e5d0' ,
40
+ border : '1px solid #4caf50' ,
39
41
} ,
40
42
{
41
43
date : '2023-01-20' ,
42
- textColor : 'var(--ion-color-secondary-contrast)' ,
43
- backgroundColor : 'var(--ion-color-secondary)' ,
44
+ textColor : 'var(--ion-color-secondary)' ,
45
+ backgroundColor : 'rgb(var(--ion-color-secondary-rgb), 0.18)' ,
46
+ border : '1px solid var(--ion-color-secondary-shade)' ,
44
47
} ,
45
48
{
46
49
date : '2023-01-23' ,
47
50
textColor : 'rgb(68, 10, 184)' ,
48
51
backgroundColor : 'rgb(211, 200, 229)' ,
52
+ border : '1px solid rgb(103, 58, 183)' ,
49
53
} ,
50
54
] ;
51
55
</ script >
Original file line number Diff line number Diff line change 8
8
date: ' 2023-01-05' ,
9
9
textColor: ' #800080' ,
10
10
backgroundColor: ' #ffc0cb' ,
11
+ border: ' 1px solid #e91e63' ,
11
12
},
12
13
{
13
14
date: ' 2023-01-10' ,
14
15
textColor: ' #09721b' ,
15
16
backgroundColor: ' #c8e5d0' ,
17
+ border: ' 1px solid #4caf50' ,
16
18
},
17
19
{
18
20
date: ' 2023-01-20' ,
19
- textColor: ' var(--ion-color-secondary-contrast)' ,
20
- backgroundColor: ' var(--ion-color-secondary)' ,
21
+ textColor: ' var(--ion-color-secondary)' ,
22
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
23
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
21
24
},
22
25
{
23
26
date: ' 2023-01-23' ,
24
27
textColor: ' rgb(68, 10, 184)' ,
25
28
backgroundColor: ' rgb(211, 200, 229)' ,
29
+ border: ' 1px solid rgb(103, 58, 183)' ,
26
30
},
27
31
];
28
32
</script >
Original file line number Diff line number Diff line change @@ -11,21 +11,25 @@ function Example() {
11
11
date: ' 2023-01-05' ,
12
12
textColor: ' #800080' ,
13
13
backgroundColor: ' #ffc0cb' ,
14
+ border: ' 1px solid #e91e63' ,
14
15
},
15
16
{
16
17
date: ' 2023-01-10' ,
17
18
textColor: ' #09721b' ,
18
19
backgroundColor: ' #c8e5d0' ,
20
+ border: ' 1px solid #4caf50' ,
19
21
},
20
22
{
21
23
date: ' 2023-01-20' ,
22
- textColor: ' var(--ion-color-secondary-contrast)' ,
23
- backgroundColor: ' var(--ion-color-secondary)' ,
24
+ textColor: ' var(--ion-color-secondary)' ,
25
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
26
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
24
27
},
25
28
{
26
29
date: ' 2023-01-23' ,
27
30
textColor: ' rgb(68, 10, 184)' ,
28
31
backgroundColor: ' rgb(211, 200, 229)' ,
32
+ border: ' 1px solid rgb(103, 58, 183)' ,
29
33
},
30
34
]}
31
35
></IonDatetime >
Original file line number Diff line number Diff line change 15
15
date: ' 2023-01-05' ,
16
16
textColor: ' #800080' ,
17
17
backgroundColor: ' #ffc0cb' ,
18
+ border: ' 1px solid #e91e63' ,
18
19
},
19
20
{
20
21
date: ' 2023-01-10' ,
21
22
textColor: ' #09721b' ,
22
23
backgroundColor: ' #c8e5d0' ,
24
+ border: ' 1px solid #4caf50' ,
23
25
},
24
26
{
25
27
date: ' 2023-01-20' ,
26
- textColor: ' var(--ion-color-secondary-contrast)' ,
27
- backgroundColor: ' var(--ion-color-secondary)' ,
28
+ textColor: ' var(--ion-color-secondary)' ,
29
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
30
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
28
31
},
29
32
{
30
33
date: ' 2023-01-23' ,
31
34
textColor: ' rgb(68, 10, 184)' ,
32
35
backgroundColor: ' rgb(211, 200, 229)' ,
36
+ border: ' 1px solid rgb(103, 58, 183)' ,
33
37
},
34
38
];
35
39
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ export class ExampleComponent {
17
17
return {
18
18
textColor: ' #800080' ,
19
19
backgroundColor: ' #ffc0cb' ,
20
+ border: ' 1px solid #e91e63' ,
20
21
};
21
22
}
22
23
23
24
if (utcDay % 3 === 0 ) {
24
25
return {
25
- textColor: ' var(--ion-color-secondary-contrast)' ,
26
- backgroundColor: ' var(--ion-color-secondary)' ,
26
+ textColor: ' var(--ion-color-secondary)' ,
27
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
28
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
27
29
};
28
30
}
29
31
Original file line number Diff line number Diff line change 34
34
return {
35
35
textColor : '#800080' ,
36
36
backgroundColor : '#ffc0cb' ,
37
+ border : '1px solid #e91e63' ,
37
38
} ;
38
39
}
39
40
40
41
if ( utcDay % 3 === 0 ) {
41
42
return {
42
- textColor : 'var(--ion-color-secondary-contrast)' ,
43
- backgroundColor : 'var(--ion-color-secondary)' ,
43
+ textColor : 'var(--ion-color-secondary)' ,
44
+ backgroundColor : 'rgb(var(--ion-color-secondary-rgb), 0.18)' ,
45
+ border : '1px solid var(--ion-color-secondary-shade)' ,
44
46
} ;
45
47
}
46
48
Original file line number Diff line number Diff line change 11
11
return {
12
12
textColor: ' #800080' ,
13
13
backgroundColor: ' #ffc0cb' ,
14
+ border: ' 1px solid #e91e63' ,
14
15
};
15
16
}
16
17
17
18
if (utcDay % 3 === 0 ) {
18
19
return {
19
- textColor: ' var(--ion-color-secondary-contrast)' ,
20
- backgroundColor: ' var(--ion-color-secondary)' ,
20
+ textColor: ' var(--ion-color-secondary)' ,
21
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
22
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
21
23
};
22
24
}
23
25
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ function Example() {
13
13
return {
14
14
textColor: ' #800080' ,
15
15
backgroundColor: ' #ffc0cb' ,
16
+ border: ' 1px solid #e91e63' ,
16
17
};
17
18
}
18
19
19
20
if (utcDay % 3 === 0 ) {
20
21
return {
21
- textColor: ' var(--ion-color-secondary-contrast)' ,
22
- backgroundColor: ' var(--ion-color-secondary)' ,
22
+ textColor: ' var(--ion-color-secondary)' ,
23
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
24
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
23
25
};
24
26
}
25
27
Original file line number Diff line number Diff line change 18
18
return {
19
19
textColor: ' #800080' ,
20
20
backgroundColor: ' #ffc0cb' ,
21
+ border: ' 1px solid #e91e63' ,
21
22
};
22
23
}
23
24
24
25
if (utcDay % 3 === 0 ) {
25
26
return {
26
- textColor: ' var(--ion-color-secondary-contrast)' ,
27
- backgroundColor: ' var(--ion-color-secondary)' ,
27
+ textColor: ' var(--ion-color-secondary)' ,
28
+ backgroundColor: ' rgb(var(--ion-color-secondary-rgb), 0.18)' ,
29
+ border: ' 1px solid var(--ion-color-secondary-shade)' ,
28
30
};
29
31
}
30
32
You can’t perform that action at this time.
0 commit comments