Skip to content

Commit

Permalink
Move the close button to the end of the content
Browse files Browse the repository at this point in the history
In order for it to be on top of whatever is passed into
the component's slot

Signed-off-by: Marco Ambrosini <[email protected]>
  • Loading branch information
marcoambrosini committed Sep 12, 2022
1 parent b186ec4 commit 769f429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcModal/NcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ export default {

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

<!-- Navigation button -->
Expand Down

0 comments on commit 769f429

Please sign in to comment.