Skip to content

Commit

Permalink
Add comment explaining why only alignnone is handled here
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Dec 6, 2023
1 parent 18d1c99 commit fe091f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/image/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default function save( { attributes } ) {
const borderProps = getBorderClassesAndStyles( attributes );

const classes = classnames( {
// All other align classes are handled by block supports.
// `{ align: 'none' }` is unique to transforms for the image block.
alignnone: 'none' === align,
[ `size-${ sizeSlug }` ]: sizeSlug,
'is-resized': width || height,
Expand Down

0 comments on commit fe091f1

Please sign in to comment.