Skip to content

Commit 5ecd33c

Browse files
committed
feat(datetime): add new calendar parts
1 parent 1c9e5ee commit 5ecd33c

5 files changed

Lines changed: 108 additions & 3 deletions

File tree

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
```css
22
/*
3-
* Custom Datetime Calendar Header Part
3+
* Custom Datetime Calendar Header Parts
44
* -------------------------------------------
55
*/
6+
ion-datetime::part(calendar-header) {
7+
background-color: orange;
8+
}
9+
610
ion-datetime::part(month-year-button) {
711
background-color: lightblue;
812
}
13+
14+
ion-datetime::part(prev-next-buttons) {
15+
background-color: firebrick;
16+
}
17+
18+
ion-datetime::part(prev-button) {
19+
color: white;
20+
}
21+
22+
ion-datetime::part(next-button) {
23+
color: black;
24+
}
25+
26+
ion-datetime::part(days-of-week) {
27+
background-color: #9ad162;
28+
color: white;
29+
}
930
```

static/usage/v8/datetime/styling/calendar-header/demo.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,30 @@
1515
* -------------------------------------------
1616
*/
1717

18+
ion-datetime::part(calendar-header) {
19+
background-color: orange;
20+
}
21+
1822
ion-datetime::part(month-year-button) {
1923
background-color: lightblue;
2024
}
25+
26+
ion-datetime::part(prev-next-buttons) {
27+
background-color: firebrick;
28+
}
29+
30+
ion-datetime::part(prev-button) {
31+
color: white;
32+
}
33+
34+
ion-datetime::part(next-button) {
35+
color: black;
36+
}
37+
38+
ion-datetime::part(days-of-week) {
39+
background-color: #9ad162;
40+
color: white;
41+
}
2142
</style>
2243
</head>
2344

static/usage/v8/datetime/styling/calendar-header/javascript.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,32 @@
33

44
<style>
55
/*
6-
* Custom Datetime Calendar Header Part
6+
* Custom Datetime Calendar Header Parts
77
* -------------------------------------------
88
*/
9+
ion-datetime::part(calendar-header) {
10+
background-color: orange;
11+
}
12+
913
ion-datetime::part(month-year-button) {
1014
background-color: lightblue;
1115
}
16+
17+
ion-datetime::part(prev-next-buttons) {
18+
background-color: firebrick;
19+
}
20+
21+
ion-datetime::part(prev-button) {
22+
color: white;
23+
}
24+
25+
ion-datetime::part(next-button) {
26+
color: black;
27+
}
28+
29+
ion-datetime::part(days-of-week) {
30+
background-color: #9ad162;
31+
color: white;
32+
}
1233
</style>
1334
```
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
```css
22
/*
3-
* Custom Datetime Calendar Header Part
3+
* Custom Datetime Calendar Header Parts
44
* -------------------------------------------
55
*/
6+
ion-datetime::part(calendar-header) {
7+
background-color: orange;
8+
}
9+
610
ion-datetime::part(month-year-button) {
711
background-color: lightblue;
812
}
13+
14+
ion-datetime::part(prev-next-buttons) {
15+
background-color: firebrick;
16+
}
17+
18+
ion-datetime::part(prev-button) {
19+
color: white;
20+
}
21+
22+
ion-datetime::part(next-button) {
23+
color: black;
24+
}
25+
26+
ion-datetime::part(days-of-week) {
27+
background-color: #9ad162;
28+
color: white;
29+
}
930
```

static/usage/v8/datetime/styling/calendar-header/vue.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,29 @@
1212
* Custom Datetime Calendar Header Part
1313
* -------------------------------------------
1414
*/
15+
ion-datetime::part(calendar-header) {
16+
background-color: orange;
17+
}
18+
1519
ion-datetime::part(month-year-button) {
1620
background-color: lightblue;
1721
}
22+
23+
ion-datetime::part(prev-next-buttons) {
24+
background-color: firebrick;
25+
}
26+
27+
ion-datetime::part(prev-button) {
28+
color: white;
29+
}
30+
31+
ion-datetime::part(next-button) {
32+
color: black;
33+
}
34+
35+
ion-datetime::part(days-of-week) {
36+
background-color: #9ad162;
37+
color: white;
38+
}
1839
</style>
1940
```

0 commit comments

Comments
 (0)