SOLVED: Bricks adding CSS to Icons?

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

Been developing this site, and working as expect thus far. https://stanleysmith.wpengine.com/

Now it seems there’s a page ID specific CSS sheet setting Bricks icon size to 60px, amongst some other accordion CSS in there? Can’t see where that sheet is served from though only it seems post/page specific:

All of a sudden popped up and called - like post-176.min.css?

Tried locating it refreshing caches, Bricks cache etc. but not sure what this is all about.

TIA

Many thanks

Hey Rob,

thanks for your report.

There is a default icon font-size of 60px in Bricks. Usually when you add a custom class to the icon and specify a different font-size this takes precedence over the default style:

In your case, however, there seems to be a different loading order. Seems like you’re using Frames (class name fr-hero-bravo__top-link-icon). Maybe you can ask the Frames support first?

If you send some temporary credentials to help@bricksbuilder.io I’m happy to have a look at your exact setup. Please include a link to this forum thread.

Best,

André

1 Like

I am André dude, yes. Thanks once again for jumping on this so fast.

It’s real strange as it was fine for ages - only just noticed it happening which is super strange.

I’ll ping over some login details but also put something in Frames support.

Hey André

Did you receive that login all OK?

I noticed the CSS was coming from 2 Bricks templates, present in the footer section, pulled in via a ‘Template’ block? When both of these were not pulled in this way, and present on the page as code, this wasn’t happening.

Many thanks :slight_smile:

Temporarily changing the CSS to inline solved this for me, but it’s not a long term solution sadly :frowning:

Is this a known bug please?

Hey Rob,

sorry for the delay.

It’s a specificity issue in your specific setup that needs more than a quick fix. It is somewhat related to this discussion. We will definitely think about how to improve this in the future while still being backwards compatible and not excluding users on somewhat older browser versions.

Workaround for now is to set the icon size (var(--text-m)) on the ID level for your header icons.

Best,

André

1 Like

Thank you André. Any idea on an ETA for a fix?

I understand RE the ID level, also having the CSS inline works too - but affects speeds no doubt…

I only saw this when I made these into saved templates to use as dynamic conditional sections, they then acquired their own stylesheets and this order issue became apparent (I know you know this, just re-affirming - as without this and using the sections as ‘code’ - the icons were OK).

Hi @robp ,

With Bricks 1.12 BETA, now available as a manual download (Bricks – Account), we implemented Cascade layer – Bricks Academy, which should solve this issue.

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.12 Changelog – Bricks

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.

Best regards,
Matej