diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index f88278b11f06d..fadb52e594af8 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -1,6 +1,6 @@ .wp-block-image { - > a { + a { display: inline-block; } @@ -11,11 +11,6 @@ box-sizing: border-box; } - &.alignfull a, - &.alignwide a { - width: 100%; - } - // The following style maintains border radius application for deprecated // image blocks that applied border radius to the outer `figure` element. // @@ -37,6 +32,11 @@ text-align: center; } + &.alignfull a, + &.alignwide a { + width: 100%; + } + &.alignfull img, &.alignwide img { height: auto;