Compare commits

...

16 Commits

Author SHA1 Message Date
Pedro Lourenço
c5ba0434e9 Merge branch 'next' into ROU-11247
# Conflicts:
#	core/src/components/modal/animations/sheet.ts
2024-10-21 12:53:30 +01:00
Pedro Lourenço
de16f9c082 Fixing enter animation when backdropBreakpoint is greater than currentBreakpoint 2024-10-21 12:52:37 +01:00
Pedro Lourenço
d539a8ace1 Merge branch 'next' into ROU-11247 2024-10-18 18:45:13 +01:00
Pedro Lourenço
bf1264403c CR - Clarifying even more the option description 2024-10-18 18:32:09 +01:00
Pedro Lourenço
65e723e21d Remove console log 2024-10-18 15:34:35 +01:00
Pedro Lourenço
da6bbc6789 Clarification comment 2024-10-18 15:03:41 +01:00
Pedro Lourenço
9fa854da08 Following @tanner-reits' suggested approach & fixing snapshot tests 2024-10-18 13:51:07 +01:00
Pedro Lourenço
2afe4b9fbf Merge branch 'next' into ROU-11247 2024-10-17 12:30:28 +01:00
Pedro Lourenço
754881eec9 Missing comments 2024-10-16 20:02:36 +01:00
Pedro Lourenço
34ac561ffe Merge branch 'next' into ROU-11247 2024-10-16 19:03:03 +01:00
Pedro Lourenço
6509b1584d CR 2024-10-16 19:00:33 +01:00
Pedro Lourenço
f914101932 Missing png files 2024-10-15 18:08:57 +01:00
Pedro Lourenço
966d4c6346 Adding new screenshot tests 2024-10-15 17:53:27 +01:00
Pedro Lourenço
142612031f Re-run snapshot tests 2024-10-15 15:50:14 +01:00
Pedro Lourenço
d8a3c17a85 Minor change 2024-10-15 15:13:44 +01:00
Pedro Lourenço
c051ff3299 Adding static backdrop behaviour to modal when using ionic theme 2024-10-11 11:48:13 +01:00

View File

@@ -12,9 +12,12 @@ export const createSheetEnterAnimation = (opts: ModalAnimationOptions) => {
* current breakpoint, then the backdrop should be fading in.
*/
const shouldShowBackdrop = backdropBreakpoint === undefined || backdropBreakpoint < currentBreakpoint!;
const initialBackdrop = shouldShowBackdrop
? `calc(var(--backdrop-opacity) * ${staticBackdropOpacity ? 1 : currentBreakpoint!})`
: '0';
let initialBackdrop = '0';
if (staticBackdropOpacity) {
initialBackdrop = 'calc(var(--backdrop-opacity)';
} else if (shouldShowBackdrop) {
initialBackdrop = `calc(var(--backdrop-opacity) * ${currentBreakpoint!})`;
}
const backdropAnimation = createAnimation('backdropAnimation').fromTo('opacity', 0, initialBackdrop);