Skip to content

Commit

Permalink
Fix form-label lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jun 25, 2024
1 parent fa0a9f2 commit 479db32
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions assets/src/onboarding-wizard/pages/technical-background/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ export function TechnicalBackground() {
className={`technical-background-option-container`}
selected={true === developerToolsOption}
>
<label
htmlFor={enableInputID}
className="technical-background-option"
>
<div className="technical-background-option">
<div className="technical-background-option__input-container">
<input
type="radio"
Expand All @@ -76,7 +73,10 @@ export function TechnicalBackground() {
/>
</div>
<User1 />
<div className="technical-background-option__description">
<label
htmlFor={enableInputID}
className="technical-background-option__description"
>
<h2>
{__('Developer or technically savvy', 'amp')}
</h2>
Expand All @@ -86,15 +86,15 @@ export function TechnicalBackground() {
'amp'
)}
</p>
</div>
</label>
</label>
</div>
</Selectable>

<Selectable
className={`technical-background-option-container`}
selected={false === developerToolsOption}
>
<label
<div
htmlFor={disableInputID}
className="technical-background-option"
>
Expand All @@ -109,7 +109,10 @@ export function TechnicalBackground() {
/>
</div>
<User2 />
<div className="technical-background-option__description">
<label
htmlFor={disableInputID}
className="technical-background-option__description"
>
<h2>
{__(
'Non-technical or wanting a simpler setup',
Expand All @@ -122,8 +125,8 @@ export function TechnicalBackground() {
'amp'
)}
</p>
</div>
</label>
</label>
</div>
</Selectable>
</form>
</div>
Expand Down

0 comments on commit 479db32

Please sign in to comment.