Skip to content

Commit 064fc94

Browse files
committed
fix: Use camelCase in emits
1 parent a33acfa commit 064fc94

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/PopupBodyDetails.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<button
88
type="button"
99
class="va-btn va-flex va-items-center va-px-2 va-py-3 va-relative"
10-
@click="$emit('hide-details')"
10+
@click="$emit('hideDetails')"
1111
>
1212
<IconArrowNarrow />
1313
<span class="va-ml-2 va-text-base va-font-medium va-leading-3">{{ $vat('back', 'Back') }}</span>
@@ -153,7 +153,7 @@ export default {
153153
}
154154
},
155155
156-
emits: ['hide-details'],
156+
emits: ['hideDetails'],
157157
158158
disableAxeAudit: true,
159159

src/components/PopupBodyViolations.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:key="`subitem-${violation.id}`"
2727
tag="li"
2828
class="va-p-subitem va-px-2 va-py-3 va-flex va-justify-between va-items-start hover:va-bg-primary"
29-
@trigger="$emit('show-details', violation)"
29+
@trigger="$emit('showDetails', violation)"
3030
>
3131
<div class="va-flex va-items-start">
3232
<span :class="`va-text-${violation.impact} va-text-2xl va-font-bold va-leading-4 va-mr-2`">&#8226;</span>
@@ -42,7 +42,7 @@
4242
class="va-btn va-relative va-pt-1 va-pb-2 va-px-3"
4343
style="top: -2px; right: -6px;"
4444
:aria-labelledby="`see-more-${violation.id} violation-${violation.id}`"
45-
@click="$emit('show-details', violation)"
45+
@click="$emit('showDetails', violation)"
4646
>
4747
<span
4848
:id="`see-more-${violation.id}`"
@@ -75,7 +75,7 @@ export default {
7575
IconArrowNarrow
7676
},
7777
78-
emits: ['show-details'],
78+
emits: ['showDetails'],
7979
8080
disableAxeAudit: true,
8181

src/components/PopupButton.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
aria-controls="va-popup-box"
66
:aria-expanded="popupShow.toString()"
77
:aria-label="ariaLabelButton"
8-
@click="$emit('toggle-popup')"
8+
@click="$emit('togglePopup')"
99
>
1010
<span
1111
v-show="notifications && !popupShow"
@@ -67,7 +67,7 @@ export default {
6767
}
6868
},
6969
70-
emits: ['toggle-popup'],
70+
emits: ['togglePopup'],
7171
7272
disableAxeAudit: true,
7373

0 commit comments

Comments
 (0)