Skip to content

Commit

Permalink
style: fix button merged themes colors
Browse files Browse the repository at this point in the history
  • Loading branch information
timothejoubert committed Jun 11, 2024
1 parent d51d24a commit ab183a4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
15 changes: 14 additions & 1 deletion components/molecules/VButton/Default.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,20 @@ import { vButtonSizes as sizes } from '~/components/molecules/VButton/VButton.vu
</NuxtStoryVariant>

<NuxtStoryVariant title="Sizes">
<VButton v-for="size in sizes" :key="`${size}-size`" :label="`Button ${size}`" outlined :size="size" />
<VStoryThemeProvider>
<VButton
v-for="size in sizes"
:key="`${size}-size-theme-default`"
:label="`Button ${size}`"
outlined
:size="size"
/>
</VStoryThemeProvider>
</NuxtStoryVariant>

<NuxtStoryVariant title="Theme prop">
<VButton :label="`Button Dark`" theme="dark" outlined />
<VButton :label="`Button Dark`" theme="light" outlined />
</NuxtStoryVariant>
</NuxtStory>
</template>
2 changes: 1 addition & 1 deletion components/molecules/VButton/VButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default defineComponent({
@use 'sass:map';
@if global-variable-exists('themes') {
$themes: map-merge(
$themes: map.deep-merge(
$themes,
(
dark: (
Expand Down
13 changes: 12 additions & 1 deletion components/molecules/VLink/ScopedSlot.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,19 @@
<VLink v-slot="{ href, target, rel }" url="https://google.com" custom>
<VButton :href="href" :target="target" :rel="rel" theme="dark" filled icon-name="check" label="Label" />
</VLink>
<VLink v-slot="{ href, target, rel }" url="https://google.com" custom>
<VButton
:href="href"
:target="target"
:rel="rel"
theme="light"
filled
icon-name="check"
label="Label"
/>
</VLink>
<VLink v-slot="linkProps" url="https://google.com" custom>
<VButton v-bind="linkProps" filled theme="light">
<VButton v-bind="linkProps">
Slot button label
<template #icon>
<VIcon name="check" />
Expand Down

0 comments on commit ab183a4

Please sign in to comment.