From ddb2ea2ecabfb60ef3342decad85d622bd2de49c Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 17 Oct 2024 12:43:15 +0200 Subject: [PATCH 1/2] RadioGroup: Fix arrow key navigation in RTL --- packages/components/src/radio-group/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/components/src/radio-group/index.tsx b/packages/components/src/radio-group/index.tsx index ac66c79e904e4b..e59775c00a8023 100644 --- a/packages/components/src/radio-group/index.tsx +++ b/packages/components/src/radio-group/index.tsx @@ -7,6 +7,7 @@ import * as Ariakit from '@ariakit/react'; * WordPress dependencies */ import { useMemo, forwardRef } from '@wordpress/element'; +import { isRTL } from '@wordpress/i18n'; /** * Internal dependencies @@ -34,6 +35,7 @@ function UnforwardedRadioGroup( setValue: ( newValue ) => { onChange?.( newValue ?? undefined ); }, + rtl: isRTL(), } ); const contextValue = useMemo( From 2ca6e50a72d36f6778a887d5fab3c8e7ebe2f164 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 17 Oct 2024 12:48:00 +0200 Subject: [PATCH 2/2] CHANGELOG --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index d71f6ba7ce142f..192d36c76e751d 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bug Fixes - `ColorPalette`: prevent overflow of custom color button background ([#66152](https://github.com/WordPress/gutenberg/pull/66152)). +- `RadioGroup`: Fix arrow key navigation in RTL ([#66202](https://github.com/WordPress/gutenberg/pull/66202)). ### Enhancements