mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 01:03:03 +08:00
fix(modal): border radius is correctly set on card style modal (#23461)
This commit is contained in:
@ -68,10 +68,3 @@
|
|||||||
box-shadow: var(--box-shadow);
|
box-shadow: var(--box-shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.overlay-datetime) {
|
|
||||||
--width: 316px;
|
|
||||||
--height: 296px;
|
|
||||||
--background: transparent;
|
|
||||||
--border-radius: #{$modal-ios-border-radius};
|
|
||||||
}
|
|
||||||
|
@ -8,5 +8,3 @@ $modal-ios-background-color: $background-color !default;
|
|||||||
|
|
||||||
/// @prop - Border radius for the modal
|
/// @prop - Border radius for the modal
|
||||||
$modal-ios-border-radius: 10px !default;
|
$modal-ios-border-radius: 10px !default;
|
||||||
|
|
||||||
$modal-ios-card-border-radius: 10px !default;
|
|
||||||
|
@ -63,11 +63,15 @@ html.ios ion-modal ion-toolbar {
|
|||||||
padding-left: calc(var(--ion-safe-area-left) + 8px);
|
padding-left: calc(var(--ion-safe-area-left) + 8px);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .ion-page needs to explicitly inherit
|
/**
|
||||||
// the border radius in safari otherwise
|
* .ion-page needs to explicitly set
|
||||||
// modals will not show border radius properly
|
* the border radius in WebKit otherwise
|
||||||
|
* modals will not show border radius properly.
|
||||||
|
* Do not use inherit as that will not
|
||||||
|
* work with shadow dom in this case.
|
||||||
|
*/
|
||||||
html.ios ion-modal .ion-page {
|
html.ios ion-modal .ion-page {
|
||||||
border-radius: inherit;
|
border-radius: 10px 10px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user