Skip to content

Commit

Permalink
migrate mt-field-error over to plain css
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Nov 6, 2024
1 parent d378d68 commit a1af05f
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<template>
<mt-text
v-if="!!error"
as="span"
size="2xs"
color="color-text-critical-default"
v-if="!!error"
class="mt-field__error"
aria-label="Error message"
>
<mt-icon name="solid-exclamation-circle" />
{{ errorMessage }}
<mt-icon name="solid-exclamation-circle" size="0.75rem" />

<span>{{ errorMessage }}</span>
</mt-text>
</template>

Expand Down Expand Up @@ -71,17 +72,12 @@ const { t } = useI18n({
});
</script>

<style lang="scss">
<style scoped>
.mt-field__error {
display: flex;
align-items: center;
gap: 4px;
margin-top: 4px;
#meteor-icon-kit__solid-exclamation-circle {
width: 12px;
height: 12px;
color: var(--color-icon-critical-default);
}
color: var(--color-icon-critical-default);
}
</style>

0 comments on commit a1af05f

Please sign in to comment.