diff --git a/core/src/components/button-group/button-group.tsx b/core/src/components/button-group/button-group.tsx index e9ba122c46..7dce680a95 100644 --- a/core/src/components/button-group/button-group.tsx +++ b/core/src/components/button-group/button-group.tsx @@ -102,6 +102,7 @@ export class ButtonGroup implements ComponentInterface { button.size = size; button.onclick = () => this.handleButtonClick(index, button.getAttribute('value')); button.classList.toggle('active', index === this.activeIndex); + button.setAttribute('aria-pressed', index === this.activeIndex ? 'true' : 'false'); })} );