fix(segment-button): screen readers now announce selected state properly (#21273)

This commit is contained in:
Liam DeBeasi
2020-05-12 11:37:56 -04:00
committed by GitHub
parent 7166a290cc
commit 85cc35ee91

View File

@ -101,7 +101,7 @@ export class SegmentButton implements ComponentInterface, ButtonInterface {
> >
<button <button
type={type} type={type}
aria-pressed={checked ? 'true' : null} aria-pressed={checked ? 'true' : 'false'}
class="button-native" class="button-native"
disabled={disabled} disabled={disabled}
> >