Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Blockbase: Ponyfill css overrides block-level global styles for Button block #4435

@jeyip

Description

@jeyip

Description

I'm seeing an issue with block-level global styling being overridden in the dotcom site editor and frontend (atomic + simple sites), and it looks like it has to do with the ponyfill.css file in blockbase. When I remove ponyfill.css, per block global styles work as expected.

List of affected blocks

  1. Button (text color and background color)
  2. Cover (text color and background color) Not caused by blockbase
  3. Site Title (text color and background color) Not caused by blockbase
  4. Cover and Group blocks (right/left padding)

Steps to replicate

  1. On a simple or atomic site, activate a block theme that depends on blockbase
  2. Activate the site editor
  3. Navigate to the site editor
  4. Insert a button block onto the page and add text content
  5. Open the global styles sidebar, and select the "By Block Type" menu tab
  6. Unfold the Button block-level global styles panel and select different color options
  7. Confirm that the color options do not change according to user customizations

Button Block

2021-08-16 13 58 39

Result

User customized global styles (like background color) weren't applied to the block

Expected

The block styles would change according to user customizations

Notes

  • Slack Discussion: p1629226103080900-slack-C029FM1EH

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions