Skip to content

Commit

Permalink
fix(textfield): add semantic connection between label and input in ex…
Browse files Browse the repository at this point in the history
…amples
  • Loading branch information
christoph-fricke committed Aug 9, 2024
1 parent df2ec90 commit 74fc2f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/documentation/src/elements/textfield.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ const meta: Meta<TextfieldArgs> = {
},
render: (args) => html`
<div class="hap-textfield">
<label>${args.label}</label>
<input ?required=${args.required} ?disabled=${args.disabled} />
<label for="textfield">${args.label}</label>
<input
id="textfield"
?required=${args.required}
?disabled=${args.disabled}
/>
</div>
`,
};
Expand Down

0 comments on commit 74fc2f6

Please sign in to comment.