Skip to content

Commit

Permalink
fix(NcModal): make 'Close' button the last element for the focus-trap
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Nov 25, 2024
1 parent 3c37a5a commit a2ee270
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/NcModal/NcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ export default {

<!-- Content -->
<div :id="'modal-description-' + randId" class="modal-container">
<div class="modal-container__content">
<!-- @slot Modal content to render -->
<slot />
</div>
<!-- Close modal -->
<NcButton v-if="canClose && closeButtonContained"
type="tertiary"
Expand All @@ -299,10 +303,6 @@ export default {
<Close :size="20" />
</template>
</NcButton>
<div class="modal-container__content">
<!-- @slot Modal content to render -->
<slot />
</div>
</div>

<!-- Navigation button -->
Expand Down

0 comments on commit a2ee270

Please sign in to comment.