From dede8d981a31b74421ffa8fac92d78be87130adb Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 14 Sep 2022 09:19:09 +0200 Subject: [PATCH] Improve the wording of deprecation warnings --- packages/components/src/popover/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/components/src/popover/index.tsx b/packages/components/src/popover/index.tsx index baca3c071fb0e..1e9060b9a4235 100644 --- a/packages/components/src/popover/index.tsx +++ b/packages/components/src/popover/index.tsx @@ -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', } ); @@ -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 }`', @@ -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`', @@ -229,7 +229,7 @@ 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', @@ -237,7 +237,7 @@ const UnforwardedPopover = ( } 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', @@ -245,7 +245,7 @@ const UnforwardedPopover = ( } 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',