From d2b3c1fd71484347bccfa1d923fd04303656565d Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Thu, 31 Oct 2024 03:27:17 +0900 Subject: [PATCH] Notice: Add appropriate size props to Buttons (#66593) * Notice: Add appropriate size props to Buttons * Add size prop to reset Button in story * Add changelog * Update snapshot Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla Co-authored-by: jameskoster --- packages/components/CHANGELOG.md | 1 + packages/components/src/notice/index.tsx | 2 ++ packages/components/src/notice/stories/index.story.tsx | 6 +++++- .../src/notice/test/__snapshots__/index.tsx.snap | 8 ++++---- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index e0b6a6d071e13..630b26bad2f79 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -6,6 +6,7 @@ - `Guide`: Use small size button for page controls ([#66607](https://github.com/WordPress/gutenberg/pull/66607)). - `PaletteEdit`: Add appropriate size props to Buttons ([#66590](https://github.com/WordPress/gutenberg/pull/66590)). +- `Notice`: Add appropriate size props to Buttons ([#66593](https://github.com/WordPress/gutenberg/pull/66593)). ### Internal diff --git a/packages/components/src/notice/index.tsx b/packages/components/src/notice/index.tsx index 868576ecc9aa3..6f3ca94d4f734 100644 --- a/packages/components/src/notice/index.tsx +++ b/packages/components/src/notice/index.tsx @@ -142,6 +142,7 @@ function Notice( { return ( diff --git a/packages/components/src/notice/test/__snapshots__/index.tsx.snap b/packages/components/src/notice/test/__snapshots__/index.tsx.snap index c74d6fdd0a6fc..77abecf14264b 100644 --- a/packages/components/src/notice/test/__snapshots__/index.tsx.snap +++ b/packages/components/src/notice/test/__snapshots__/index.tsx.snap @@ -21,19 +21,19 @@ exports[`Notice should match snapshot 1`] = ` class="components-notice__actions" > More information