tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
189 stars 18 forks source link

Global style can not override button block's paddings and display style #1108

Closed ScarlettYing closed 11 months ago

ScarlettYing commented 11 months ago

Description

Button block's Global style can not override the button block's paddings and display style.

Steps to reproduce

  1. Create a button global style with display set to block, and paddings set to 30px.
  2. Add a button to a page, and apply the global style.

Expected behavior

The global style apply to the button with new paddings and display styles.

Actual behavior

The button keeps the default paddings (15px 20px) and display (inline-flex) style.

References:

https://generate.support/topic/global-style-button-not-right-on-frond-end/#post-29892


ScarlettYing commented 11 months ago

Use the Clear local style button to avoid this issue