Skip to content

feat(datetime): add styles for adjacent days for ionic theme #30492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 20, 2025
18 changes: 15 additions & 3 deletions core/src/components/datetime/datetime.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
--background-activated: #{globals.$ion-primitives-neutral-200};
--background-hover: #{globals.$ion-primitives-neutral-200};
--background-hover-opacity: 1;
min-height: globals.$ion-scale-1000;
}

// TODO(ROU-11119): Rewrite this when we replace the ion-button with a native button
Expand Down Expand Up @@ -153,12 +154,14 @@
}

// Selected Day
.calendar-day.calendar-day-active {
.calendar-day.calendar-day-active,
.calendar-day.calendar-day-active.calendar-day-adjacent-day {
background: globals.$ion-semantics-primary-100;
}

// Focused Day
.calendar-day:focus-visible {
.calendar-day:focus-visible,
.calendar-day.calendar-day-adjacent-day:focus-visible {
border: var(--focus-ring-width) globals.$ion-border-style-solid var(--focus-ring-color);
}

Expand All @@ -174,6 +177,16 @@
background: globals.$ion-semantics-primary-300;
}

// Adjacent Day
.calendar-day.calendar-day-adjacent-day {
color: globals.$ion-text-subtlest;
}

// Pressed Adjacent Day
.calendar-day.calendar-day-adjacent-day:active {
background: globals.$ion-bg-primary-base-press;
}

// Time / Header
// -----------------------------------
:host .datetime-time {
Expand Down Expand Up @@ -203,7 +216,6 @@

// Calendar / Footer / Action Buttons
// -----------------------------------

:host .datetime-buttons ion-buttons,
.datetime-action-buttons .datetime-action-buttons-container {
flex-flow: column;
Expand Down
Loading