mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(modal): card style modal now adds appropriate contrast (#20604)
This commit is contained in:
@ -44,8 +44,8 @@ export const iosEnterAnimation = (
|
|||||||
.beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
|
.beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
|
||||||
.addElement(presentingEl)
|
.addElement(presentingEl)
|
||||||
.keyframes([
|
.keyframes([
|
||||||
{ offset: 0, transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
|
{ offset: 0, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
|
||||||
{ offset: 1, transform: finalTransform, borderRadius: '10px 10px 0 0' }
|
{ offset: 1, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
baseAnimation.addAnimation(presentingAnimation);
|
baseAnimation.addAnimation(presentingAnimation);
|
||||||
|
@ -46,8 +46,8 @@ export const iosLeaveAnimation = (
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.keyframes([
|
.keyframes([
|
||||||
{ offset: 0, transform: `translateY(${modalTransform}) scale(${currentPresentingScale})`, borderRadius: '10px 10px 0 0' },
|
{ offset: 0, filter: 'contrast(0.85)', transform: `translateY(${modalTransform}) scale(${currentPresentingScale})`, borderRadius: '10px 10px 0 0' },
|
||||||
{ offset: 1, transform: 'translateY(0px) scale(1)', borderRadius: '0px' }
|
{ offset: 1, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
baseAnimation.addAnimation(presentingAnimation);
|
baseAnimation.addAnimation(presentingAnimation);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.modal-card) {
|
:host(.modal-card) {
|
||||||
--backdrop-opacity: 0.15;
|
--backdrop-opacity: 0;
|
||||||
--width: 100%;
|
--width: 100%;
|
||||||
|
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
Reference in New Issue
Block a user