Skip to content

Commit eb894de

Browse files
Staci CooperStaci Cooper
authored andcommitted
Apply has-custom-width class on frontend
Fixes a bug where the inner button was not being set correctly to 100% width on the frontend, due to the missing classname.`
1 parent 3780aa5 commit eb894de

File tree

1 file changed

+1
-1
lines changed
  • packages/block-library/src/button

1 file changed

+1
-1
lines changed

packages/block-library/src/button/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function save( { attributes, className } ) {
4141
// A title will no longer be assigned for new or updated button block links.
4242

4343
const wrapperClasses = classnames( className, {
44-
[ `wp-block-button__width-${ width }` ]: width,
44+
[ `has-custom-width wp-block-button__width-${ width }` ]: width,
4545
} );
4646

4747
return (

0 commit comments

Comments
 (0)