Skip to content

Commit

Permalink
fix icon overlay issue in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
egbadon-victor committed Nov 5, 2024
1 parent 497c667 commit d93d9be
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions src/components/AppModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<div class="overlay app-modal" @click.self="$emit('close')">
<div class="modal" role="dialog" aria-modal="true">
<header v-if="title" class="modal-header">
<h3>{{ title }}</h3>
<button aria-label="Close" class="close-button" @click="$emit('close')">
&times;
</button>
</header>

<slot></slot>
</div>
</div>
</template>

<script>
export default {
name: 'AppModal',
props: {
title: {
type: String,
default: '',
},
},
};
</script>
6 changes: 4 additions & 2 deletions src/components/ChooserModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<app-modal
<AppModal
v-if="activeModal !== null"
:title="$t(`help.${modals[activeModal]}.heading`)"
@close="closeModal"
Expand Down Expand Up @@ -119,15 +119,17 @@
v-html="$t(`help.${modals[activeModal]}.footer`)"
/>
</section>
</app-modal>
</AppModal>
</template>

<script>
import LicenseIcons from './LicenseIcons';
import AppModal from './AppModal.vue';
export default {
name: 'ChooserModal',
components: {
AppModal,
LicenseIcons,
},
props: {
Expand Down

0 comments on commit d93d9be

Please sign in to comment.