Skip to content

Post Featured Image is double border marked up. #52349

@shimotmk

Description

@shimotmk

Description

Post Featured Image is double border marked up.

Step-by-step reproduction instructions

  1. Paste the code below into the block editor.
<!-- wp:post-featured-image {"overlayColor":"black","dimRatio":50,"style":{"spacing":{"padding":{"top":"clamp(1.875rem, 1.303rem + 1.83vw, 2.813rem)","bottom":"clamp(1.875rem, 1.303rem + 1.83vw, 2.813rem)","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}},"border":{"width":"20px"}},"borderColor":"vivid-cyan-blue"} /-->
  1. You can see that the border is double marked up in the block editor and front end.

Setting both Overlay and Padding makes it easy to see that the border is double marked up.

Screenshots, screen recording, code snippet

post-featured-image

Environment info

  • WordPress 6.2.2
  • Twenty Twenty-Three 1.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] Post Featured ImageAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions