fix(select): allow aria-expanded to be set to false

fixes #5360

PiperOrigin-RevId: 597381616
This commit is contained in:
Material Web Team 2024-01-10 16:08:09 -08:00 committed by Copybara-Service
parent 6efc90403b
commit 73725be670

View File

@ -400,7 +400,7 @@ export abstract class Select extends selectBaseClass {
tabindex=${this.disabled ? '-1' : '0'}
aria-label=${(this as ARIAMixinStrict).ariaLabel || nothing}
aria-describedby="description"
aria-expanded=${this.open ? 'true' : nothing}
aria-expanded=${this.open ? 'true' : 'false'}
aria-controls="listbox"
class="field"
label=${this.label}