-
jrgong
Hey guys
encountered an issue, how to repro:
Any time I create a new GB button, a unique gb-text-xxxxxx (wherease xxxxxxx is a unique identifier) keeps overriding the gb-button-primary global styles which I apply manually.
Is that expected behaviour? If yes, how can I remove the gb-text-xxxxxx style from the button? -
Alvind
Hi there,
The
gb-text-xxxxxx
is a local style, so if a block has both a Global Style and a Local Style, the local style will override the global style.After applying a Global Style to a block, you’ll need to clear the local block styles: https://cln.sh/pl5p4hH1
I recommend saving the block as a Pattern so you can easily add it to your page whenever you need that specific styled button.
-
jrgong
ah thx, missed that block style. Where can I edit block style CSS? Could not find any info in the docs.
-
Alvind
The local block style CSS cannot be edited. It is the default styling applied when you first add the Button block inside the editor.
-
webfresh
some info here that may help:
https://generate.support/topic/gb2-0-0-beta-2-how-to-make-button-defaults-show-in-backend/#post-143442
- You must be logged in to reply to this topic.