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

@ -68,7 +68,7 @@ export class SegmentButton {
render() {
return [
<button
aria-pressed={this.checked}
aria-pressed={this.checked ? 'true' : null}
class="segment-button-native"
disabled={this.disabled}
onClick={() => this.checked = true }>