Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](@svelteui/core): fix dark mode checkbox colors not being applied
ISSUES CLOSED: #377
- Loading branch information
1 parent
da1773f
commit a30ebd1
Showing
2 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
packages/svelteui-core/src/components/Checkbox/Checkbox.stories.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts"> | ||
import { Meta, Template, Story } from '@storybook/addon-svelte-csf'; | ||
import { useSvelteUITheme } from '$lib/styles'; | ||
import { Checkbox } from './index'; | ||
const theme = useSvelteUITheme(); | ||
const colors = Object.keys(theme.colorNames); | ||
</script> | ||
|
||
<Meta title="Components/Checkbox" component={Checkbox} /> | ||
|
||
<Template let:args> | ||
<Checkbox {...args} /> | ||
</Template> | ||
|
||
<Story name="Checkbox" id="checkboxStory" /> | ||
|
||
<Story name="Colors" id="checkboxColorsStory"> | ||
<div style="display: flex; gap: 10px;"> | ||
{#each colors as color} | ||
<Checkbox {color} /> | ||
{/each} | ||
</div> | ||
</Story> | ||
|
||
<Story name="Disabled" id="checkboxDisabledStory" args={{ disabled: true }} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters