diff --git a/projects/plugins/jetpack/changelog/fix-jetpack-button-height b/projects/plugins/jetpack/changelog/fix-jetpack-button-height new file mode 100644 index 000000000000..87c37234f171 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-jetpack-button-height @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Jetpack button: prevent vertical stretch diff --git a/projects/plugins/jetpack/extensions/blocks/button/view.scss b/projects/plugins/jetpack/extensions/blocks/button/view.scss index 41394986df71..e3bce484b968 100644 --- a/projects/plugins/jetpack/extensions/blocks/button/view.scss +++ b/projects/plugins/jetpack/extensions/blocks/button/view.scss @@ -8,6 +8,7 @@ @include align-block; max-width: 100%; width: fit-content; + height: fit-content; // Since .wp-block-button__link has a 100% height, this prevents the button from matching its container's height. margin: 0; &.is-style-outline > .wp-block-button__link {