File tree Expand file tree Collapse file tree 5 files changed +36
-27
lines changed Expand file tree Collapse file tree 5 files changed +36
-27
lines changed Original file line number Diff line number Diff line change 13
13
</p >
14
14
15
15
<slot name =" end" >
16
- <VCloseButton
17
- :variant =" variant === 'dark' ? 'black ' : 'transparent-gray'"
18
- size = " close"
19
- icon- size =" small"
16
+ <VIconButton
17
+ :variant =" variant === 'dark' ? 'transparent-tx ' : 'transparent-gray'"
18
+ :icon-props = " { name: ' close-small' } "
19
+ size =" small"
20
20
:label =" closeButtonLabel || $t('modal.closeBanner')"
21
- @close =" $emit('close')"
21
+ :class =" {
22
+ 'focus-slim-tx-yellow hover:bg-white hover:bg-opacity-10':
23
+ variant === 'dark',
24
+ }"
25
+ @click =" $emit('close')"
22
26
/>
23
27
</slot >
24
28
</section >
@@ -32,7 +36,7 @@ import { defineEvent } from "~/types/emits"
32
36
import type { BannerId } from " ~/types/banners"
33
37
34
38
import VIcon from " ~/components/VIcon/VIcon.vue"
35
- import VCloseButton from " ~/components/VCloseButton .vue"
39
+ import VIconButton from " ~/components/VIconButton/VIconButton .vue"
36
40
37
41
import type { TranslateResult } from " vue-i18n"
38
42
@@ -43,8 +47,8 @@ import type { TranslateResult } from "vue-i18n"
43
47
export default defineComponent ({
44
48
name: " VNotificationBanner" ,
45
49
components: {
50
+ VIconButton ,
46
51
VIcon ,
47
- VCloseButton ,
48
52
},
49
53
props: {
50
54
/**
Original file line number Diff line number Diff line change 11
11
</template >
12
12
<template #default =" { close } " >
13
13
<div class =" grid w-80 items-stretch justify-stretch" >
14
- <VCloseButton
14
+ <VIconButton
15
15
:label =" $t('modal.close')"
16
- class =" z-10 col-start-1 row-start-1 self-start justify-self-end"
17
- @close =" close"
16
+ :icon-props =" { name: 'close-small' }"
17
+ variant =" filled-white"
18
+ size =" medium"
19
+ class =" z-10 col-start-1 row-start-1 me-1 mt-1 self-start justify-self-end"
20
+ @click =" close"
18
21
/>
19
22
<VContentReportForm
20
23
class =" col-start-1 row-start-1 p-6"
@@ -32,15 +35,15 @@ import { defineComponent, PropType } from "vue"
32
35
33
36
import type { AudioDetail , ImageDetail } from " ~/types/media"
34
37
35
- import VCloseButton from " ~/components/VCloseButton.vue"
36
38
import VContentReportButton from " ~/components/VContentReport/VContentReportButton.vue"
37
39
import VContentReportForm from " ~/components/VContentReport/VContentReportForm.vue"
38
40
import VPopover from " ~/components/VPopover/VPopover.vue"
41
+ import VIconButton from " ~/components/VIconButton/VIconButton.vue"
39
42
40
43
export default defineComponent ({
41
44
name: " VContentReportPopover" ,
42
45
components: {
43
- VCloseButton ,
46
+ VIconButton ,
44
47
VContentReportButton ,
45
48
VContentReportForm ,
46
49
VPopover ,
Original file line number Diff line number Diff line change 53
53
<template #top-bar >
54
54
<div class =" flex h-20 w-full justify-between px-2 py-4" >
55
55
<VHomeLink variant =" light" />
56
- <VCloseButton
57
- variant =" black"
58
- icon-size =" medium"
56
+ <VIconButton
57
+ variant =" transparent-tx"
58
+ size =" large"
59
+ :icon-props =" { name: 'close' }"
60
+ class =" text-white focus-slim-tx-yellow hover:bg-white hover:bg-opacity-10"
59
61
:label =" $t('modal.closePagesMenu')"
60
- @close =" closePageMenu"
62
+ @click =" closePageMenu"
61
63
/>
62
64
</div >
63
65
</template >
@@ -92,7 +94,6 @@ import usePages from "~/composables/use-pages"
92
94
93
95
import { useUiStore } from " ~/stores/ui"
94
96
95
- import VCloseButton from " ~/components/VCloseButton.vue"
96
97
import VHomeLink from " ~/components/VHeader/VHomeLink.vue"
97
98
import VPageLinks from " ~/components/VHeader/VPageLinks.vue"
98
99
import VModalContent from " ~/components/VModal/VModalContent.vue"
@@ -104,7 +105,6 @@ export default defineComponent({
104
105
name: " VHeaderInternal" ,
105
106
components: {
106
107
VIconButton ,
107
- VCloseButton ,
108
108
VModalContent ,
109
109
VPopoverContent ,
110
110
VHomeLink ,
Original file line number Diff line number Diff line change 35
35
v-if =" showFilters"
36
36
:applied-filter-count =" appliedFilterCount"
37
37
/>
38
- <VCloseButton
38
+ <VIconButton
39
39
:label =" $t('modal.closeContentSettings')"
40
+ :icon-props =" { name: 'close-small' }"
40
41
variant =" filled-white"
42
+ size =" large"
41
43
class =" ms-auto self-center"
42
- @close =" close"
44
+ @click =" close"
43
45
/>
44
46
</template >
45
47
<VTabPanel id =" content-settings" >
@@ -84,8 +86,6 @@ import { useSearchStore } from "~/stores/search"
84
86
import useSearchType from " ~/composables/use-search-type"
85
87
86
88
import VButton from " ~/components/VButton.vue"
87
- import VCloseButton from " ~/components/VCloseButton.vue"
88
-
89
89
import VFilterTab from " ~/components/VHeader/VHeaderMobile/VFilterTab.vue"
90
90
import VIcon from " ~/components/VIcon/VIcon.vue"
91
91
import VModalContent from " ~/components/VModal/VModalContent.vue"
@@ -96,14 +96,15 @@ import VTab from "~/components/VTabs/VTab.vue"
96
96
import VTabPanel from " ~/components/VTabs/VTabPanel.vue"
97
97
import VTabs from " ~/components/VTabs/VTabs.vue"
98
98
import VSafeBrowsing from " ~/components/VSafeBrowsing/VSafeBrowsing.vue"
99
+ import VIconButton from " ~/components/VIconButton/VIconButton.vue"
99
100
100
101
type ContentSettingsTab = " content-settings" | " filters"
101
102
102
103
export default defineComponent ({
103
104
name: " VContentSettingsModalContent" ,
104
105
components: {
106
+ VIconButton ,
105
107
VSafeBrowsing ,
106
- VCloseButton ,
107
108
VIcon ,
108
109
VModalContent ,
109
110
VButton ,
Original file line number Diff line number Diff line change 34
34
class =" flex w-full shrink-0 justify-between py-4 pe-3 ps-4 md:justify-end md:bg-tx md:px-0 md:py-3"
35
35
:class =" [$style[`top-bar-${variant}`], $style[`top-bar-${mode}`]]"
36
36
>
37
- <VCloseButton
37
+ <VIconButton
38
38
ref =" closeButton"
39
39
:label =" $t('modal.ariaClose')"
40
40
variant =" filled-white"
41
- @close =" hide()"
41
+ size =" small"
42
+ @click =" hide()"
42
43
/>
43
44
</div >
44
45
</slot >
@@ -66,14 +67,14 @@ import { useDialogContent } from "~/composables/use-dialog-content"
66
67
67
68
import type { ModalColorMode , ModalVariant } from " ~/types/modal"
68
69
69
- import VCloseButton from " ~/components/VCloseButton .vue"
70
+ import VIconButton from " ~/components/VIconButton/VIconButton .vue"
70
71
71
72
/**
72
73
* Renders the inner content of a modal and manages focus.
73
74
*/
74
75
export default defineComponent ({
75
76
name: " VModalContent" ,
76
- components: { VCloseButton , VTeleport },
77
+ components: { VIconButton , VTeleport },
77
78
inheritAttrs: false ,
78
79
props: {
79
80
visible: {
You can’t perform that action at this time.
0 commit comments