Open RachidBray opened 1 year ago
This is a pain, i tried a few of the wp.hooks but I could not get them working, we need to add a check for this when we can find a working example of the duplicate action hook.
What about adding utility classes instead of generating CSS rules ?
Example:
Styles
sd-position-top {
transform: scaleX(-1);
}
sd-position-bottom {
transform: scaleX(-1) rotate(180deg);
}
HTML Markup
<div class="wp-block-blockstrap-blockstrap-widget-shape-divider block-1b23ghy7jtl blockstrap-shape blockstrap-shape-top position-absolute sd-position-top">
I just noticed that the block already generates a class for position blockstrap-shape-top
, but the css rule is missing.
Hi, When you duplicate a shape divider block (both block get the same classname) The problem is that whenever you change a setting in one block all blocks are affected.
We can avoid this by adding a block everytime we need it but i don't think it's sustainable.