Skip to content

Commit

Permalink
NumberControl: Clarify deprecation message about hideHTMLArrows prop (
Browse files Browse the repository at this point in the history
#47370)

* NumberControl: Clarify deprecation message about `hideHTMLArrows` prop

* Update changelog

* Update packages/components/src/number-control/index.tsx

Co-authored-by: Lena Morita <[email protected]>

Co-authored-by: Lena Morita <[email protected]>
  • Loading branch information
t-hamano and mirka authored Jan 25, 2023
1 parent 98ce5c5 commit 1cb9ec5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Deprecations

- `NumberControl`: Clarify deprecation message about `hideHTMLArrows` prop ([#47370](https://github.com/WordPress/gutenberg/pull/47370)).

### Enhancements

- `Dropdown`: deprecate `position` prop, use `popoverProps` instead ([46865](https://github.com/WordPress/gutenberg/pull/46865)).
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/number-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function UnforwardedNumberControl(
forwardedRef: ForwardedRef< any >
) {
if ( hideHTMLArrows ) {
deprecated( 'hideHTMLArrows', {
deprecated( 'wp.components.NumberControl hideHTMLArrows prop ', {
alternative: 'spinControls="none"',
since: '6.2',
version: '6.3',
Expand Down

0 comments on commit 1cb9ec5

Please sign in to comment.