Skip to content

Commit 427c89a

Browse files
- fix styles to use the right vars;
- remove focus of adjacent day, since adjacent days are not docusable;
1 parent b80fc4b commit 427c89a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@
160160
}
161161

162162
// Focused Day
163-
.calendar-day:focus-visible,
164-
.calendar-day.calendar-day-adjacent-day:focus-visible {
163+
.calendar-day:focus-visible {
165164
border: var(--focus-ring-width) globals.$ion-border-style-solid var(--focus-ring-color);
166165
}
167166

@@ -173,18 +172,19 @@
173172
}
174173

175174
// Pressed Day
176-
.calendar-day:active {
177-
background: globals.$ion-semantics-primary-300;
175+
.calendar-day:active,
176+
.calendar-day.calendar-day-adjacent-day:active {
177+
background: globals.$ion-bg-primary-subtle-press;
178178
}
179179

180180
// Adjacent Day
181181
.calendar-day.calendar-day-adjacent-day {
182182
color: globals.$ion-text-subtlest;
183183
}
184184

185-
// Pressed Adjacent Day
186-
.calendar-day.calendar-day-adjacent-day:active {
187-
background: globals.$ion-bg-primary-subtle-press;
185+
// Selected Adjacent Day
186+
.calendar-day.calendar-day-active.calendar-day-adjacent-day {
187+
color: globals.$ion-text-default;
188188
}
189189

190190
// Time / Header

0 commit comments

Comments
 (0)