Skip to content

Commit

Permalink
add label (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryro authored Nov 4, 2024
1 parent 25942d6 commit f112d4e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ exports[`Search Form Default renders correctly 1`] = `
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down Expand Up @@ -56,9 +63,16 @@ exports[`Search Form Default renders correctly with extra attributes 1`] = `
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down Expand Up @@ -101,9 +115,16 @@ exports[`Search Form Default renders correctly with extra class names 1`] = `
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down Expand Up @@ -146,9 +167,16 @@ exports[`Search Form Default renders correctly with extra classes on the button
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down Expand Up @@ -191,9 +219,16 @@ exports[`Search Form Default renders correctly with extra classes on the input 1
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input input-extra-class"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down Expand Up @@ -236,9 +271,16 @@ exports[`Search Form Default renders correctly with extra form elements 1`] = `
<div
class="ecl-form-group"
>
<label
class="ecl-form-label ecl-search-form__label"
for="search-input-id"
id="search-input-id-label"
>
Search
</label>
<input
class="ecl-text-input ecl-text-input--m ecl-search-form__text-input"
id="search-input"
id="search-input-id"
placeholder="Placeholder text"
type="search"
/>
Expand Down
3 changes: 2 additions & 1 deletion src/specs/components/search-form/demo/data--ec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Simple content for demo
module.exports = {
label: 'Search',
text_input: {
id: 'search-input',
id: 'search-input-id',
label: 'Search',
placeholder: 'Placeholder text',
},
Expand Down
3 changes: 2 additions & 1 deletion src/specs/components/search-form/demo/data--eu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Simple content for demo
module.exports = {
label: 'Search',
text_input: {
id: 'search-input',
id: 'search-input-id',
label: 'Search',
placeholder: 'Placeholder text',
},
Expand Down

1 comment on commit f112d4e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.