SOLVED: Button component does not render correctly in gutenberg

Browser: Firefox
OS: Linux

Hi,

Since Bricks 2.3.8 (same in 2.3.9), my button component does not render properly within Gutenberg et adopts the default Bricks style.

Capture d’écran du 2026-07-14 20-05-29

Capture d’écran du 2026-07-14 20-04-54

I saw in the changelog there was a fix for:

Block editor: Global variables missing in iframe with Components as Blocks

On my side it looks like it did the opposite.

Steps to reproduce:

  1. In Bricks editor, add a button element, and turn it into a component
  2. Add some parameters, including a select field for the button style (primary, light, dark in my case).
  3. Enable the use of the component within Gutenberg.
  4. Create a post in Gutenberg, add the component.

It looks perfectly fine on the front-end, the issue is only within Gutenberg.

Thanks

Hi Louis,
Thanks so much for your report!

Can you export your button component and share it with us, and also provide a link to the website where we can see the problem? Thanks!

Best regards,
timmse

Hi @timmse thanks for the quick reply.

I just spinned a new WP install, with only bricks 2.3.8 on it, no plugin installed, no tweaking of any bricks settings (except allowing embedding component in gutenberg).

I recreated quickly the component (and added my primary color and set it in the theme > button style for its primary state).

The button doesn’t show the proper style when added in Gutenberg:

But it looks fine in front:

The blog post can be seen on that url : Test button component bricks – Bricks debug – Button component

Here’s the button component download link:

Thanks!

Thanks! Strange, as I can’t replicate it with your component either.
Please send temporary login credentials and a link to this thread to help@bricksbuilder.io :v:

1 Like

Thanks for the login details!
I just noticed that we’ve already received reports about this via email.

Bricks 2.4 beta already contains a fix for this issue. I just updated the theme on your site, and it works as expected as far as I can see.

1 Like

Amazing thanks a lot!