Skip to content

Commit 23b0474

Browse files
- add styles in ionic theme for adjacent-days
1 parent 911684f commit 23b0474

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

core/src/components/datetime/datetime.ionic.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@
153153
}
154154

155155
// Selected Day
156-
.calendar-day.calendar-day-active {
156+
.calendar-day.calendar-day-active,
157+
.calendar-day.calendar-day-active.calendar-day-adjacent-day {
157158
background: globals.$ion-semantics-primary-100;
158159
}
159160

160161
// Focused Day
161-
.calendar-day:focus-visible {
162+
.calendar-day:focus-visible,
163+
.calendar-day.calendar-day-adjacent-day:focus-visible {
162164
border: var(--focus-ring-width) globals.$ion-border-style-solid var(--focus-ring-color);
163165
}
164166

@@ -174,6 +176,16 @@
174176
background: globals.$ion-semantics-primary-300;
175177
}
176178

179+
// Adjacent Day
180+
.calendar-day.calendar-day-adjacent-day {
181+
color: globals.$ion-text-subtlest;
182+
}
183+
184+
// Pressed Adjacent Day
185+
.calendar-day.calendar-day-adjacent-day:active {
186+
background: globals.$ion-bg-primary-base-press;
187+
}
188+
177189
// Time / Header
178190
// -----------------------------------
179191
:host .datetime-time {
@@ -203,7 +215,6 @@
203215

204216
// Calendar / Footer / Action Buttons
205217
// -----------------------------------
206-
207218
:host .datetime-buttons ion-buttons,
208219
.datetime-action-buttons .datetime-action-buttons-container {
209220
flex-flow: column;

0 commit comments

Comments
 (0)