Skip to content

Commit 1bdcbd3

Browse files
asyncLizcopybara-github
authored andcommitted
fix(select): missing accessible label
PiperOrigin-RevId: 686083729
1 parent c27bdee commit 1bdcbd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

select/internal/select.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,15 @@ export abstract class Select extends selectBaseClass {
386386
}
387387

388388
private renderField() {
389+
const ariaLabel = (this as ARIAMixinStrict).ariaLabel || this.label;
389390
return staticHtml`
390391
<${this.fieldTag}
391392
aria-haspopup="listbox"
392393
role="combobox"
393394
part="field"
394395
id="field"
395396
tabindex=${this.disabled ? '-1' : '0'}
396-
aria-label=${(this as ARIAMixinStrict).ariaLabel || nothing}
397+
aria-label=${ariaLabel || nothing}
397398
aria-describedby="description"
398399
aria-expanded=${this.open ? 'true' : 'false'}
399400
aria-controls="listbox"

0 commit comments

Comments
 (0)