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

31 lines
608 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
<button data-testid="close-modal-btn" type="button" @click.prevent="$emit('click')">
2022-07-15 07:23:55 +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>
import { faTimes } from '@fortawesome/free-solid-svg-icons'</script>
2022-04-15 14:24:30 +00:00
<style lang="scss" scoped>
button {
display: flex;
place-content: center;
place-items: center;
position: absolute;
right: 0;
top: 0;
background: var(--color-red);
width: 24px;
height: 24px;
border-radius: 0;
padding: 0;
color: var(--color-text-primary);
transition: opacity .3s;
@media (hover: none) {
opacity: 1;
}
}
</style>