mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(content): ensure fixed slot renders on top of content in iOS (#24300)
This commit is contained in:
@ -199,4 +199,15 @@
|
||||
|
||||
::slotted([slot="fixed"]) {
|
||||
position: absolute;
|
||||
|
||||
/**
|
||||
* When presenting ion-content inside of an ion-modal, the .inner-scroll
|
||||
* element is composited. In WebKit, the fixed content is not composited
|
||||
* causing it to appear under the main scrollable content as a result.
|
||||
* The fixed content is correctly composited in other browsers. Adding
|
||||
* the translateZ forces the fixed content to be composited so it correctly
|
||||
* shows on top of the scrollable content. Setting a negative z-index will
|
||||
* still allow the fixed content to appear under the scroll content if specified.
|
||||
*/
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user