Add missing names.

This commit is contained in:
brunnerh 2024-01-03 04:46:52 +01:00
commit 5b715d1ab2
6 changed files with 22 additions and 7 deletions

View file

@ -79,7 +79,7 @@ Use the `selected` prop to bind and update the selected value.
## Skeleton
<RadioButtonGroup legendText="Storage tier (disk)">
<RadioButtonGroup legendText="Storage tier (disk)" name="skeleton">
<RadioButtonSkeleton />
<RadioButtonSkeleton />
<RadioButtonSkeleton />
@ -87,8 +87,8 @@ Use the `selected` prop to bind and update the selected value.
## Skeleton (vertical)
<RadioButtonGroup orientation="vertical" legendText="Storage tier (disk)">
<RadioButtonGroup orientation="vertical" legendText="Storage tier (disk)" name="skeleton-vertical">
<RadioButtonSkeleton />
<RadioButtonSkeleton />
<RadioButtonSkeleton />
</RadioButtonGroup>
</RadioButtonGroup>

View file

@ -10,7 +10,11 @@
<Theme bind:theme />
<RadioButtonGroup legendText="Carbon theme" bind:selected="{theme}">
<RadioButtonGroup
legendText="Carbon theme"
name="theme"
bind:selected="{theme}"
>
{#each ["white", "g10", "g80", "g90", "g100"] as value}
<RadioButton labelText="{value}" value="{value}" />
{/each}

View file

@ -10,7 +10,11 @@
<Theme bind:theme persist persistKey="__carbon-theme" />
<RadioButtonGroup legendText="Carbon theme" bind:selected="{theme}">
<RadioButtonGroup
legendText="Carbon theme"
name="theme"
bind:selected="{theme}"
>
{#each ["white", "g10", "g80", "g90", "g100"] as value}
<RadioButton labelText="{value}" value="{value}" />
{/each}

View file

@ -128,6 +128,7 @@
<RadioButtonGroup
style="margin-top: var(--cds-spacing-08)"
legendText="Carbon themes"
name="theme"
bind:selected="{$theme}"
>
{#each ["white", "g10", "g80", "g90", "g100"] as value}