Skip to content

Commit 2163e29

Browse files
committed
💚 fix linter
1 parent 3ee1504 commit 2163e29

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

src/components/Banner/MucBanner.vue

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<script setup lang="ts">
2-
import {computed} from "vue";
2+
import { computed } from "vue";
33
44
type bannerType = "info" | "success" | "warning" | "emergency";
55
66
const props = withDefaults(
7-
defineProps<{
8-
/**
9-
* Changes the style of the banner. Available types are `info`, `warning` and `emergency`.
10-
*/
11-
type?: bannerType;
12-
}>(),
13-
{
14-
type: "info",
15-
}
7+
defineProps<{
8+
/**
9+
* Changes the style of the banner. Available types are `info`, `warning` and `emergency`.
10+
*/
11+
type?: bannerType;
12+
}>(),
13+
{
14+
type: "info",
15+
}
1616
);
1717
1818
defineSlots<{
@@ -67,7 +67,6 @@ const typeAriaLabel = computed(() => {
6767
}
6868
});
6969
70-
7170
const typeIcon = computed(() => {
7271
switch (props.type) {
7372
case "success":
@@ -85,16 +84,16 @@ const typeIcon = computed(() => {
8584
<div>
8685
<div>
8786
<div
88-
class="m-banner"
89-
:class="typeClass"
90-
:role="typeRole"
91-
:aria-label="typeAriaLabel"
87+
class="m-banner"
88+
:class="typeClass"
89+
:role="typeRole"
90+
:aria-label="typeAriaLabel"
9291
>
9392
<div class="container-fluid">
9493
<svg class="icon">
95-
<use :href="typeIcon"/>
94+
<use :href="typeIcon" />
9695
</svg>
97-
<slot/>
96+
<slot />
9897
</div>
9998
</div>
10099
</div>
@@ -103,11 +102,11 @@ const typeIcon = computed(() => {
103102

104103
<style scoped>
105104
.m-banner--success {
106-
background-color: #F1F6F3;
107-
border-bottom: 1px solid #3A7F53;
105+
background-color: #f1f6f3;
106+
border-bottom: 1px solid #3a7f53;
108107
}
109108
110109
.m-banner--success .icon {
111-
color: #3A7F53;
110+
color: #3a7f53;
112111
}
113-
</style>
112+
</style>

0 commit comments

Comments
 (0)