Skip to content

Commit

Permalink
Improve the wording of deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 14, 2022
1 parent 24c099a commit 1d11ed2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/components/src/popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const UnforwardedPopover = (
} = props;

if ( range ) {
deprecated( 'range prop in Popover component', {
deprecated( '`range` prop in wp.components.Popover', {
since: '6.1',
version: '6.3',
} );
Expand All @@ -204,7 +204,7 @@ const UnforwardedPopover = (
let computedFlipProp = flip;
let computedResizeProp = resize;
if ( __unstableForcePosition !== undefined ) {
deprecated( '__unstableForcePosition prop in Popover component', {
deprecated( '`__unstableForcePosition` prop wp.components.Popover', {
since: '6.1',
version: '6.3',
alternative: '`flip={ false }` and `resize={ false }`',
Expand All @@ -218,7 +218,7 @@ const UnforwardedPopover = (

let shouldShift = shift;
if ( __unstableShift !== undefined ) {
deprecated( '`__unstableShift` prop in Popover component', {
deprecated( '`__unstableShift` prop in wp.components.Popover', {
since: '6.1',
version: '6.3',
alternative: '`shift` prop`',
Expand All @@ -229,23 +229,23 @@ const UnforwardedPopover = (
}

if ( anchorRef !== undefined ) {
deprecated( '`anchorRef` prop in Popover component', {
deprecated( '`anchorRef` prop in wp.components.Popover', {
since: '6.1',
version: '6.3',
alternative: '`anchor` prop',
} );
}

if ( anchorRect !== undefined ) {
deprecated( '`anchorRect` prop in Popover component', {
deprecated( '`anchorRect` prop in wp.components.Popover', {
since: '6.1',
version: '6.3',
alternative: '`anchor` prop',
} );
}

if ( getAnchorRect !== undefined ) {
deprecated( '`getAnchorRect` prop in Popover component', {
deprecated( '`getAnchorRect` prop in wp.components.Popover', {
since: '6.1',
version: '6.3',
alternative: '`anchor` prop',
Expand Down

0 comments on commit 1d11ed2

Please sign in to comment.