From 3780aa5958e708239fb8b256624117de5a61b088 Mon Sep 17 00:00:00 2001 From: Staci Cooper Date: Tue, 27 Oct 2020 13:24:42 -0700 Subject: [PATCH] Remove max width from buttons with custom width set PR #23168 overhauls alignment controls on the Buttons container and allows for full width. For a Button inside a very large container, in order to be set correctly to 100% it must be able to exceed any configured max-width. This commit does not remove the max-width for any button that does NOT have a custom width percentage selected. This is so that default buttons continue to be sized as they normally would. --- packages/block-library/src/button/edit.js | 2 +- packages/block-library/src/button/style.scss | 17 ++++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index 487c6194df0d7..2136f5ddc6b24 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -237,7 +237,7 @@ function ButtonEdit( props ) {