Skip to content

Commit

Permalink
BoxControl: Fix aria-valuetext value (WordPress#68362)
Browse files Browse the repository at this point in the history
* BoxControl: Fix `aria-valuetext` value

* Update changelog

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent 4b847f9 commit faf357c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

- `BoxControl`: Better respect for the `min` prop in the Range Slider ([#67819](https://github.com/WordPress/gutenberg/pull/67819)).
- `FontSizePicker`: Add `display:contents` rule to fix overflowing text in the custom size select. ([#68280](https://github.com/WordPress/gutenberg/pull/68280)).
- `BoxControl`: Fix aria-valuetext value ([#68362](https://github.com/WordPress/gutenberg/pull/68362)).

### Experimental

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/box-control/input-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faf357c

Please sign in to comment.