From ffe395356851922431304a9b12e1248f95d8c49d Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sat, 28 Dec 2024 11:51:14 +0900 Subject: [PATCH 1/2] BoxControl: Fix `aria-valuetext` value --- packages/components/src/box-control/input-control.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/box-control/input-control.tsx b/packages/components/src/box-control/input-control.tsx index 81fbcad42c1d08..27dff1991d8572 100644 --- a/packages/components/src/box-control/input-control.tsx +++ b/packages/components/src/box-control/input-control.tsx @@ -264,7 +264,7 @@ export default function BoxInputControl( { } aria-valuetext={ marks[ presetIndex !== undefined ? presetIndex + 1 : 0 ] - .label + .tooltip } renderTooltipContent={ ( index ) => marks[ ! index ? 0 : index ].tooltip From 32fd9f7aec1ed41cc41db5432c5627e77c6a3a4c Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sat, 28 Dec 2024 12:16:23 +0900 Subject: [PATCH 2/2] Update changelog --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 7255888604ed12..64abc9ece42cf3 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -19,6 +19,7 @@ ### Bug Fixes - `BoxControl`: Better respect for the `min` prop in the Range Slider ([#67819](https://github.com/WordPress/gutenberg/pull/67819)). +- `BoxControl`: Fix aria-valuetext value ([#68362](https://github.com/WordPress/gutenberg/pull/68362)). ### Experimental