From f905e987b6c5042b660b9dc58110e1f21be403ab Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Thu, 31 Oct 2024 14:38:48 +0900 Subject: [PATCH] MenuItem: Add 40px size prop on Button (#66596) * MenuItem: Add 40px size prop on Button * Add changelog * Update snapshots Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla --- packages/components/CHANGELOG.md | 1 + packages/components/src/menu-item/index.tsx | 1 + .../src/menu-item/test/__snapshots__/index.js.snap | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 630b26bad2f797..5fd48336f956c1 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,6 +4,7 @@ ### Enhancements +- `MenuItem`: Add 40px size prop on Button ([#66596](https://github.com/WordPress/gutenberg/pull/66596)). - `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)). diff --git a/packages/components/src/menu-item/index.tsx b/packages/components/src/menu-item/index.tsx index cb746becdbb1ba..cc57d23e585a10 100644 --- a/packages/components/src/menu-item/index.tsx +++ b/packages/components/src/menu-item/index.tsx @@ -56,6 +56,7 @@ function UnforwardedMenuItem( return (