Skip to content

Commit

Permalink
fix: use button as close-element
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Aug 28, 2022
1 parent e03fff1 commit 1dfbca0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/modal/ModalBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="modal-heading">
<div />
<slot name="heading" />
<div class="modal-close" @click="close()">
<UnstyledButton class="modal-close" @click="close()">
<font-awesome-icon :icon="['far', 'close']" />
</div>
</UnstyledButton>
</div>

<div class="modal-content">
Expand All @@ -24,6 +24,7 @@
import { onMounted, ref } from "vue";
import { onClickOutside } from "@vueuse/core";
import { ModalEvent, useModal } from "@store/modal";
import UnstyledButton from "@base/UnstyledButton.vue";
const props = withDefaults(
defineProps<{
Expand Down

0 comments on commit 1dfbca0

Please sign in to comment.