Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions core/src/components/datetime/datetime.common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,13 @@
width: 100%;
}

:host .calendar-body,
:host .datetime-year {
opacity: 0;
}

:host(:not(.datetime-ready)) .datetime-year {
position: absolute;
pointer-events: none;
}

:host(.datetime-ready) .calendar-body {
opacity: 1;
}

:host(.datetime-ready) .datetime-year {
display: none;

opacity: 1;
}

/**
Expand Down
24 changes: 24 additions & 0 deletions core/src/components/datetime/datetime.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@
--background: #{globals.$ion-bg-surface-default};
--focus-ring-color: #{globals.$ion-border-focus-default};
--focus-ring-width: #{globals.$ion-border-radius-025};
/**
* TODO(FW-6931): Remove these variables upon solving the root cause
*/
--body-opacity: 0;
--year-opacity: 0;
}

/**
* TODO(FW-6931): Remove all this css related to opacity upon solving the root cause
*/
:host .calendar-body {
opacity: var(--body-opacity);
}

:host .datetime-year {
opacity: var(--year-opacity);
}

:host(.datetime-ready) .calendar-body {
--body-opacity: 1;
}

:host(.datetime-ready) .datetime-year {
--year-opacity: 1;
}

// Header
Expand Down
16 changes: 16 additions & 0 deletions core/src/components/datetime/datetime.native.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@
max-width: 350px;
}

/**
* TODO(FW-6931): Move this back to common file upon solving the root cause
*/
:host .calendar-body,
:host .datetime-year {
opacity: 0;
}

/**
* TODO(FW-6931): Move this back to common file upon solving the root cause
*/
:host(.datetime-ready) .calendar-body,
:host(.datetime-ready) .datetime-year {
opacity: 1;
}

/**
* This ensures that the picker is appropriately
* sized and never truncates the text.
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/header/header.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ion-header {
z-index: 10; // TODO(ROU-10853): replace this value with a layer token.

&.header-divider {
border-bottom: globals.$ion-border-size-025 globals.$ion-border-style-solid globals.$ion-primitives-neutral-300;
border-bottom: globals.$ion-border-size-025 globals.$ion-border-style-solid globals.$ion-border-default;
}
}

Expand Down
Loading