How to disable margin-block-start and margin-block-end inline styles
-
In the newest version of the plugin I get these classes as inline styles:
.wp-container-xxx > * { margin-block-start: 0; margin-block-end: 0; }
They completely break my custom theme. Can I disable this? I could set
"blockGap": null
in theme.json but that leads to other problems. When I do this, I have to set all the gap properties by myself and add !important to it, as I still get stuff like this (here on block-columns):.wp-container-xxx { display: flex; gap: 0.5em; flex-wrap: nowrap; align-items: center; }
This inline styles are so annoying, I would prefer to remove them completely. Is this even possible while using theme.json? Users are mostly not capable of styling things nicely anyway so would be nice to have full control without using !important in my base styles.
- The topic ‘How to disable margin-block-start and margin-block-end inline styles’ is closed to new replies.