SOLVED: IMG and FIGURE - new "border-radius: inherit" since 1.9.7?

I am using an IMG element, defined as FIGURE.
There is a border defined (circle white background) and a padding.
With object-fit: cover, the SVG (IMG) inside the FIGURE was reduced to its wanted size.

Since last Update to 1.9.7, it does not work any longer.
I found out (together with ACSS support), that there is now a new “border: inherit.”
See screenshot below.

The SVG comes from a CPT custom field, not from media manager directly.
I have no option to change the size of the svg in the editor.

Can you tell me, how can I remove this border:inherit?
Because the SVG should just fit into the FIGURE with border-radius and padding.
I dont want, that the IMG inherits the styles from the FIGURE.

This is how it looks currently (awful)

This is how the SVG should be displayed (and how it was displayed before latest update), see the red square.

Thanx in advance for your engagement, understanding and your soon response.

Hi Joachim,
Thanks again for your report!

Can you please send me a live link? Your screenshots show two different images, making it difficult to compare them. Thanks!

Best regards,
timmse

Hi Stefan,

the different image does not matter, because the issue appeared on element and classes level, not on content level.

I do not publish the URL here, because it is staging stuff.
In the meantime I removed the circle to a rounded square, that it shows correctly.
I dont have the time to wait several days with an display error.

The root issue is (like shown in my second image with the red square:
if you define a IMG element and define it as FIGURE.
Then you insert a square as an SVG-image.
You define the element with “object-fit: cover”.
Add some padding to the element.
Then you put a background and 50% border-radius to the element, so that the background is a circle.
Now you will see, that the squared image-svg is bigger than the circled background.

and this issue appeared only after last update to 1.9.7.

I could replicate the issue. We’ll provide a fix in the next update. Until then, I hope setting the border-radius for this image via custom CSS is possible.

Hi Joachim,

We’ve fixed this issue in Bricks 1.9.8 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on a production or live website. It is only meant for testing in a local or staging environment.

Checked today with v1.9.8:
I think the fixing does not work, now the background is without border.
And I saw there are other issues with “rounded images”.
The border only applies to the image itself but not to the background.


h

Can you share your Image element data here (right-click on the Image > “Copy”), so I can replicate the issue with your exact setup?

Yes, I will send you via E-Mail, because I dont want to publish urls here.

For comparison reason:
This is how an identical section in v1.9.7.1 looks like.
Borders of backround are rounded.
Both new versions (1.9.8 and 1.9.7) are not the same as 1.9.6.
Bug not fixed imho.

I just updated to 1.9.8 and have run into similar issues now on several sites. The image has a border radius set and a box shadow. I used the Bricks UI to set these settings.

Most of my images HTML tag is set as a figure. After updating Bricks from 1.9.7.1 to 1.9.8 all the box shadows do not have a border radius anymore

image

Looking at the css Bricks generates

.content-section-alpha__media img {
    object-fit: cover;
    border-radius: var(--fr-card-radius);
}

I see that the style is to specific as it only targets the image within the class so the figure which has the box shadow doesn’t get the border radius.

To fix it in the meantime I now have to add custom CSS for the border radius of the figure to make it less specific just so the block shadow works like before I updated to 1.9.8):

image

.content-section-alpha__media {
    border-radius: var(--fr-card-radius);
}

Why did you make the border radius more specific, it was working fine before?

BTW I also did run into a similar issue that joachim did as well with an SVG when I updated to 1.9.7.1.

@timmse and @thomas … I assume my issue I posted above is related to @joachim.auster

Can you let me know as if not should I create a new bug report?

@Tom No need to create a different bug report. It’s the same underlying cause.

Could you email us some temporary admin login details at help@bricksbuilder.io so we can upload a potential fix to your site for you to test?

I have emailed support.

Thanks

To those interested my issue has now been solved. Bricks Support took a look at it and will include fixes in the next release of Bricks.

Hi guys,

We’ve fixed this issue in Bricks 1.9.9 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Just updated. Looks to be fixed for me now. Thanks