Skip to content

Commit ac3e829

Browse files
arbrandesclaude
andcommitted
fix: add aria-labels for jsx-a11y/control-has-associated-label
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cfedc68 commit ac3e829

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/profile/forms/Country.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const Country = ({
7070
value={country}
7171
onChange={handleChange}
7272
>
73-
<option value=""> </option>
73+
<option value="" aria-label="empty">&nbsp;</option>
7474
{translatedCountries.map(({ code, name }) => (
7575
<option key={code} value={code} disabled={isDisabledCountry(code)}>
7676
{name}

src/profile/forms/Education.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const Education = ({
6666
value={levelOfEducation}
6767
onChange={handleChange}
6868
>
69-
<option value=""> </option>
69+
<option value="" aria-label="empty">&nbsp;</option>
7070
{EDUCATION_LEVELS.map(level => (
7171
<option key={level} value={level}>
7272
{intl.formatMessage(get(

src/profile/forms/PreferredLanguage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const PreferredLanguage = ({
7373
value={value}
7474
onChange={handleChange}
7575
>
76-
<option value=""> </option>
76+
<option value="" aria-label="empty">&nbsp;</option>
7777
{sortedLanguages.map(({ code, name }) => (
7878
<option key={code} value={code}>{name}</option>
7979
))}

0 commit comments

Comments
 (0)