From d47cf790161f591816573592eb77cf5179870876 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Sun, 10 Mar 2024 13:37:10 +0900 Subject: [PATCH 1/6] Button : deprecate `isSmall` prop --- packages/components/src/button/index.tsx | 5 +++++ packages/components/src/button/test/index.tsx | 7 +++++-- packages/components/src/button/types.ts | 10 +--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/components/src/button/index.tsx b/packages/components/src/button/index.tsx index a16f190e44704b..b2671f0139f738 100644 --- a/packages/components/src/button/index.tsx +++ b/packages/components/src/button/index.tsx @@ -49,6 +49,11 @@ function useDeprecatedProps( { }; if ( isSmall ) { + deprecated( 'Button isSmall prop', { + since: '6.6', + alternative: 'size="small"', + version: '6.9', + } ); computedSize ??= 'small'; } diff --git a/packages/components/src/button/test/index.tsx b/packages/components/src/button/test/index.tsx index 699db1b75429f0..492db82c8784ce 100644 --- a/packages/components/src/button/test/index.tsx +++ b/packages/components/src/button/test/index.tsx @@ -43,7 +43,7 @@ describe( 'Button', () => { } ); it( 'should render a button element with is-secondary and is-small class', () => { - render(