Calendar: Attribute classes/styles are printed twice #43652
Labels
[Block] Calendar
Affects the Calendar Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
In the Editor, styles and classes generated by block attributes are generated twice for the Calendar block, once on the block wrapper and again on the server-side rendered component.
Up until recently, the Calendar block had no attributes other than
className
. Therefore, this bug was not much of an issue. However, as we start adding dimension and color support, issues emerge.In the case of spacing controls, padding and margin get applied twice. Therefore we cannot implement this functionality without first fixing this issue.
Step-by-step reproduction instructions
table-class
.div
, and then again on thediv
inside of the disabled component.Screenshots, screen recording, code snippet
Environment info
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
The text was updated successfully, but these errors were encountered: