Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image block: Fix focus style not around whole image when linked #62556

Merged
merged 8 commits into from
Jun 20, 2024
5 changes: 5 additions & 0 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.wp-block-image {

> a {
display: block;
}

img {
height: auto;
max-width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/media-text/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
&.has-media-on-the-right {
grid-template-columns: 1fr 50%;
}

&__media > a {
display: inline-block;
}
}

.wp-block-media-text.is-vertically-aligned-top {
Expand Down