From 4f784544cedc90c4a7af6b4fd0a00f0e85967599 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Sun, 6 Oct 2024 08:46:27 +0900 Subject: [PATCH 1/3] ToggleGroupControl: Don't autoselect option on first group focus --- .../test/__snapshots__/index.tsx.snap | 12 ++++----- .../src/toggle-group-control/test/index.tsx | 11 ++++++++ .../component.tsx | 26 ++++++++----------- .../toggle-group-control/as-radio-group.tsx | 3 +++ .../src/toggle-group-control/types.ts | 1 + 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/packages/components/src/toggle-group-control/test/__snapshots__/index.tsx.snap b/packages/components/src/toggle-group-control/test/__snapshots__/index.tsx.snap index d2d98eaba85e6..832c6d7cb7a8c 100644 --- a/packages/components/src/toggle-group-control/test/__snapshots__/index.tsx.snap +++ b/packages/components/src/toggle-group-control/test/__snapshots__/index.tsx.snap @@ -283,7 +283,7 @@ exports[`ToggleGroupControl controlled should render correctly with icons 1`] = class="components-toggle-group-control emotion-8 emotion-9" data-wp-c16t="true" data-wp-component="ToggleGroupControl" - id="toggle-group-control-as-radio-group-11" + id="toggle-group-control-as-radio-group-12" role="radiogroup" >