Skip to content

Commit d5c481f

Browse files
committed
add required markers to all labels
1 parent ce910ba commit d5c481f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/uui-form/lib/uui-form.story.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Overview: Story = () => {
4141
<uui-form>
4242
<form id="MyForm" @submit="${_onSubmit}">
4343
<uui-form-layout-item>
44-
<uui-label slot="label">Checkbox</uui-label>
44+
<uui-label slot="label" required>Checkbox</uui-label>
4545
<uui-checkbox
4646
name="checkbox"
4747
value="Bike"
@@ -52,14 +52,14 @@ export const Overview: Story = () => {
5252
</uui-form-layout-item>
5353
5454
<uui-form-layout-item>
55-
<uui-label slot="label">Toggle</uui-label>
55+
<uui-label slot="label" required>Toggle</uui-label>
5656
<uui-toggle name="toggle" label="This is my toggle" required>
5757
This is my toggle
5858
</uui-toggle>
5959
</uui-form-layout-item>
6060
6161
<uui-form-layout-item>
62-
<uui-label slot="label">Radio Group</uui-label>
62+
<uui-label slot="label" required>Radio Group</uui-label>
6363
<uui-radio-group
6464
name="radio"
6565
label="This is my radio"
@@ -78,7 +78,7 @@ export const Overview: Story = () => {
7878
</uui-form-layout-item>
7979
8080
<uui-form-layout-item>
81-
<uui-label slot="label">Email</uui-label>
81+
<uui-label slot="label" required>Email</uui-label>
8282
<uui-input
8383
name="email"
8484
type="text"
@@ -87,13 +87,13 @@ export const Overview: Story = () => {
8787
</uui-form-layout-item>
8888
8989
<uui-form-layout-item>
90-
<uui-label slot="label">Password</uui-label>
90+
<uui-label slot="label" required>Password</uui-label>
9191
<uui-input-password name="password" label="Password" required>
9292
</uui-input-password>
9393
</uui-form-layout-item>
9494
9595
<uui-form-layout-item>
96-
<uui-label slot="label">Slider</uui-label>
96+
<uui-label slot="label" required>Slider</uui-label>
9797
<uui-slider
9898
label="Slider"
9999
name="slider"
@@ -106,7 +106,7 @@ export const Overview: Story = () => {
106106
</uui-form-layout-item>
107107
108108
<uui-form-layout-item>
109-
<uui-label slot="label">Textarea</uui-label>
109+
<uui-label slot="label" required>Textarea</uui-label>
110110
<uui-textarea
111111
label="Textarea"
112112
name="textarea"

0 commit comments

Comments
 (0)