gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Global Styles: Border customisation is not applied correctly

Open iamtakashi opened this issue 3 years ago • 3 comments

Description

With #47630, the border customisation for the Avatar block is applied correctly at the block level. However, the block will not be styled correctly if it's styled in Global Styles.

Screenshot 2023-02-20 at 15 29 13

Step-by-step reproduction instructions

  1. Add an avatar block,
  2. Go to Styles tab and Blocks > Avatar > Border
  3. Try adding a border and specify the border-radius.

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.1.1
  • Gutenberg Trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

iamtakashi avatar Feb 20 '23 14:02 iamtakashi

+1 This doesn't work as expected.

Captura de ecrã 2023-03-23, às 09 46 10

beafialho avatar Mar 23 '23 09:03 beafialho

The exact same is true of styling the search block border via global styles — works correctly at the block level but not global styles:

Block Global Styles
Screenshot 2023-03-28 at 12 33 21 PM Screenshot 2023-03-28 at 12 29 19 PM

jffng avatar Mar 28 '23 16:03 jffng

Border and border radius for the Avatar Block do not work for me. Works on the back-end but the styles do not get carried across to the markup on the front-end.

james-s-k avatar Apr 27 '23 12:04 james-s-k