Skip to content

Commit d93d9be

Browse files
fix icon overlay issue in modal
1 parent 497c667 commit d93d9be

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

src/components/AppModal.vue

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<div class="overlay app-modal" @click.self="$emit('close')">
3+
<div class="modal" role="dialog" aria-modal="true">
4+
<header v-if="title" class="modal-header">
5+
<h3>{{ title }}</h3>
6+
<button aria-label="Close" class="close-button" @click="$emit('close')">
7+
&times;
8+
</button>
9+
</header>
10+
11+
<slot></slot>
12+
</div>
13+
</div>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: 'AppModal',
19+
props: {
20+
title: {
21+
type: String,
22+
default: '',
23+
},
24+
},
25+
};
26+
</script>

src/components/ChooserModal.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<app-modal
2+
<AppModal
33
v-if="activeModal !== null"
44
:title="$t(`help.${modals[activeModal]}.heading`)"
55
@close="closeModal"
@@ -119,15 +119,17 @@
119119
v-html="$t(`help.${modals[activeModal]}.footer`)"
120120
/>
121121
</section>
122-
</app-modal>
122+
</AppModal>
123123
</template>
124124

125125
<script>
126126
import LicenseIcons from './LicenseIcons';
127+
import AppModal from './AppModal.vue';
127128
128129
export default {
129130
name: 'ChooserModal',
130131
components: {
132+
AppModal,
131133
LicenseIcons,
132134
},
133135
props: {

0 commit comments

Comments
 (0)