koel/resources/assets/js/components/ui/BtnCloseModal.vue

34 lines
671 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
2022-08-01 08:58:25 +00:00
<button data-testid="close-modal-btn" title="Dismiss" type="button" @click.prevent="$emit('click')">
2023-11-10 13:16:06 +00:00
<Icon :icon="faTimes" />
2022-04-15 14:24:30 +00:00
</button>
</template>
2022-07-15 07:23:55 +00:00
<script lang="ts" setup>
2022-08-01 08:58:25 +00:00
import { faTimes } from '@fortawesome/free-solid-svg-icons'
defineEmits<{ (e: 'click'): void }>()
2022-08-01 08:58:25 +00:00
</script>
2022-07-15 07:23:55 +00:00
2022-04-15 14:24:30 +00:00
<style lang="scss" scoped>
button {
display: flex;
place-content: center;
place-items: center;
position: absolute;
2022-08-01 08:58:25 +00:00
right: 3px;
top: 3px;
border-radius: 3px;
2022-04-15 14:24:30 +00:00
background: var(--color-red);
2022-08-01 08:58:25 +00:00
width: 22px;
height: 22px;
2022-04-15 14:24:30 +00:00
padding: 0;
color: var(--color-text-primary);
transition: opacity .3s;
@media (hover: none) {
opacity: 1;
}
}
</style>