Skip to content

Commit

Permalink
update: added justification class on save
Browse files Browse the repository at this point in the history
  • Loading branch information
up1512001 committed Jul 11, 2024
1 parent 8d1b592 commit 36a09f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/columns/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import clsx from 'clsx';
import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';

export default function save( { attributes } ) {
const { isStackedOnMobile, verticalAlignment } = attributes;
const { isStackedOnMobile, verticalAlignment, justification } = attributes;

const className = clsx( {
[ `are-vertically-aligned-${ verticalAlignment }` ]: verticalAlignment,
[ `is-not-stacked-on-mobile` ]: ! isStackedOnMobile,
[ `is-content-justification-${ justification }` ]: justification,
} );

const blockProps = useBlockProps.save( { className } );
Expand Down

0 comments on commit 36a09f9

Please sign in to comment.