Skip to content

Commit 992ca26

Browse files
author
karel kremer
committedMar 11, 2024
add insertBefore=null so the content of the existing modal isn't replaced (see in-element docs), make backdrop and modal z-index the same, so new modals can be shown over existing modals
1 parent a513a4c commit 992ca26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎addon/components/au-modal.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class AuModal extends Component {
8585

8686
<template>
8787
{{#if @modalOpen}}
88-
{{#in-element this.destinationElement}}
88+
{{#in-element this.destinationElement insertBefore=null}}
8989
<div class="au-c-modal-backdrop {{if @modalOpen 'is-visible'}}"></div>
9090
<div
9191
id="{{@id}}"

‎styles/components/_c-modal.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
========================================================================== */
77

88
$au-modal-z-index: 9999 !default;
9-
$au-modal-backdrop-z-index: 9998 !default;
9+
$au-modal-backdrop-z-index: 9999 !default;
1010

1111
/* Component
1212
========================================================================== */

0 commit comments

Comments
 (0)