Skip to content

Commit 479db32

Browse files
committed
Fix form-label lint errors
1 parent fa0a9f2 commit 479db32

File tree

1 file changed

+14
-11
lines changed
  • assets/src/onboarding-wizard/pages/technical-background

1 file changed

+14
-11
lines changed

assets/src/onboarding-wizard/pages/technical-background/index.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ export function TechnicalBackground() {
6161
className={`technical-background-option-container`}
6262
selected={true === developerToolsOption}
6363
>
64-
<label
65-
htmlFor={enableInputID}
66-
className="technical-background-option"
67-
>
64+
<div className="technical-background-option">
6865
<div className="technical-background-option__input-container">
6966
<input
7067
type="radio"
@@ -76,7 +73,10 @@ export function TechnicalBackground() {
7673
/>
7774
</div>
7875
<User1 />
79-
<div className="technical-background-option__description">
76+
<label
77+
htmlFor={enableInputID}
78+
className="technical-background-option__description"
79+
>
8080
<h2>
8181
{__('Developer or technically savvy', 'amp')}
8282
</h2>
@@ -86,15 +86,15 @@ export function TechnicalBackground() {
8686
'amp'
8787
)}
8888
</p>
89-
</div>
90-
</label>
89+
</label>
90+
</div>
9191
</Selectable>
9292

9393
<Selectable
9494
className={`technical-background-option-container`}
9595
selected={false === developerToolsOption}
9696
>
97-
<label
97+
<div
9898
htmlFor={disableInputID}
9999
className="technical-background-option"
100100
>
@@ -109,7 +109,10 @@ export function TechnicalBackground() {
109109
/>
110110
</div>
111111
<User2 />
112-
<div className="technical-background-option__description">
112+
<label
113+
htmlFor={disableInputID}
114+
className="technical-background-option__description"
115+
>
113116
<h2>
114117
{__(
115118
'Non-technical or wanting a simpler setup',
@@ -122,8 +125,8 @@ export function TechnicalBackground() {
122125
'amp'
123126
)}
124127
</p>
125-
</div>
126-
</label>
128+
</label>
129+
</div>
127130
</Selectable>
128131
</form>
129132
</div>

0 commit comments

Comments
 (0)