From 711152e2f6ff3b469ed1676303f4e1fec35ce698 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:43:08 +0000 Subject: [PATCH 1/4] Initial plan From a3b2f12c14762f5796b413b5fd275a5469c2af7c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:52:29 +0000 Subject: [PATCH 2/4] Fix SegmentedButton ARIA attributes - conditional aria-multiselectable and add aria-orientation Co-authored-by: ilhan007 <15702139+ilhan007@users.noreply.github.com> --- packages/main/src/SegmentedButtonTemplate.tsx | 3 +- packages/main/test/pages/SegmentedButton.html | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/packages/main/src/SegmentedButtonTemplate.tsx b/packages/main/src/SegmentedButtonTemplate.tsx index ff8d44aa7cd7..dd931e4e61bb 100644 --- a/packages/main/src/SegmentedButtonTemplate.tsx +++ b/packages/main/src/SegmentedButtonTemplate.tsx @@ -10,7 +10,8 @@ export default function SegmentedButtonTemplate(this: SegmentedButton) { onKeyDown={this._onkeydown} onKeyUp={this._onkeyup} onFocusIn={this._onfocusin} - aria-multiselectable="true" + aria-multiselectable={this.selectionMode === "Multiple" ? "true" : "false"} + aria-orientation="horizontal" aria-description={this.ariaDescriptionText} aria-label={this.ariaLabelText} aria-roledescription={this.ariaRoleDescription} diff --git a/packages/main/test/pages/SegmentedButton.html b/packages/main/test/pages/SegmentedButton.html index 3aaa5a4e88dc..a6ac615a6c37 100644 --- a/packages/main/test/pages/SegmentedButton.html +++ b/packages/main/test/pages/SegmentedButton.html @@ -212,6 +212,36 @@