Skip to content

Commit

Permalink
fix(icons): readd title prop
Browse files Browse the repository at this point in the history
Authored by @PhilGarb
  • Loading branch information
dargmuesli committed Oct 15, 2022
1 parent 4aa92e6 commit 414471c
Show file tree
Hide file tree
Showing 57 changed files with 512 additions and 56 deletions.
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconAddressBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="address-book"
role="img"
viewBox="0 0 512 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconArchive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconArrowLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconArrowRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconArrowRotateLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="arrow-rotate-left"
role="img"
viewBox="0 0 512 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconArrowRotateRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="arrow-rotate-right"
role="img"
viewBox="0 0 512 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconBold.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="bold"
role="img"
viewBox="0 0 384 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconBug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="bug"
role="img"
viewBox="0 0 512 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconCheckCircle.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<IconContainer viewBox="0 0 20 20" fill="currentColor" :title="t('title')">
<IconContainer viewBox="0 0 20 20" fill="currentColor" :title="title">
<path
fill-rule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
Expand All @@ -9,7 +9,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconChevronDoubleDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconCog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -21,7 +21,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconDotsVertical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="t('title')"
:title="title"
>
<path
stroke-linecap="round"
Expand All @@ -15,7 +15,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
10 changes: 9 additions & 1 deletion nuxt/components/icon/IconEnvelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="envelope"
role="img"
viewBox="0 0 512 512"
:title="t('title')"
:title="title"
>
<path
fill="currentColor"
Expand All @@ -16,7 +16,15 @@
</template>

<script setup lang="ts">
export interface Props {
title?: string
}
const { t } = useI18n()
withDefaults(defineProps<Props>(), {
title: t('title'),
})
</script>

<i18n lang="yml">
Expand Down
Loading

0 comments on commit 414471c

Please sign in to comment.