From 5980db44e5a765d15e681471325e916d566eca8d Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 4 Aug 2021 12:26:55 -0400 Subject: [PATCH] fix(datetime): text color on ios mode now accounts for color contrast (#23729) resolves #23723 --- .../src/components/datetime/datetime.ios.scss | 69 +------------------ 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/core/src/components/datetime/datetime.ios.scss b/core/src/components/datetime/datetime.ios.scss index 3c4f7f9250..c26793027c 100644 --- a/core/src/components/datetime/datetime.ios.scss +++ b/core/src/components/datetime/datetime.ios.scss @@ -115,79 +115,12 @@ background: current-color(base); } -/** - * Day that is not today but - * is selected should have ion-color for - * text color and be bolder. - */ -:host .calendar-day.calendar-day-active .calendar-day-content { - background: current-color(contrast); -} - -/** - * Day that is selected and is today - * should have white color. - */ -:host .calendar-day.calendar-day-today.calendar-day-active { - color: var(--ion-text-color, #ffffff); -} - -:host .calendar-day.calendar-day-today.calendar-day-active:after { - background: current-color(base); - - opacity: 1; -} - -:host .calendar-day { - font-size: 20px; -} - -:host .calendar-day:after { - opacity: 0.2; -} - -:host .calendar-day:focus:after { - background: current-color(base); -} - -/** - * Day that today but not selected - * should have ion-color for text color. - */ -:host .calendar-day.calendar-day-today { - color: current-color(base); -} - -/** - * Day that is not today but - * is selected should have ion-color for - * text color and be bolder. - */ -:host .calendar-day.calendar-day-active { - color: current-color(base); - - font-weight: 600; -} - -:host .calendar-day.calendar-day-active:after { - background: current-color(base); -} - -/** - * Day that is not today but - * is selected should have ion-color for - * text color and be bolder. - */ -:host .calendar-day.calendar-day-active .calendar-day-content { - background: current-color(contrast); -} - /** * Day that is selected and is today * should have white color. */ :host .calendar-day.calendar-day-today.calendar-day-active { - color: var(--ion-text-color, #ffffff); + color: current-color(contrast); } :host .calendar-day.calendar-day-today.calendar-day-active:after {