fix(accesibility): boolean aria-* properties

This commit is contained in:
Manu Mtz.-Almeida
2018-07-28 16:38:59 +02:00
parent f19553fe36
commit 4f9cbfe73c
7 changed files with 23 additions and 9 deletions

View File

@ -487,9 +487,9 @@ export class Select {
type="button"
role="combobox"
aria-haspopup="dialog"
aria-expanded={this.isExpanded}
aria-labelledby={this.labelId}
aria-disabled={this.disabled ? 'true' : false}
aria-expanded={this.isExpanded ? 'true' : null}
aria-disabled={this.disabled ? 'true' : null}
onClick={this.open.bind(this)}
onKeyUp={this.onKeyUp.bind(this)}
onFocus={this.onFocus.bind(this)}