-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS changes to RichText broke core and custom blocks layout #14674
Comments
@afercia I'm trying to reproduce this. I thing you're referring to removing the When I add the It's my understanding that one of the goals of the commit this is about and the one I linked above is to let the intended styles of the content shine through.
I'm just talking about the reusable paragraph block though. It's hard to tell what's going on with the custom block. Is that a
The fact that CSS has been an afterthought for much of this editor's development isn't lost on me. |
Gallery-item captions are also showing issues with the recent Both the front-end and the editor need the margin-bottom removed. I'll can try to put together a PR in the next day or two. |
@m-e-h thanks for looking into this. I see you've clarified (by striking-through the related sentence) this has nothing to do with a theme. Actually, I'm testing with Twenty Nineteen. Regardless, this happens with all themes.
Seen from a plugins developer perspective, having to keep up with this kind of changes is not sustainable. I'd strongly recommend to consider that, at this point of the project, also some important CSS changes should be communicated well in advance as potential breaking changes. |
This is more a communication issue and I think we've been doing better at communicating how our CSS changes can affect plugin authors and third party blocks. We can always do better though. |
Splitting this out from #14366
9b84916 removed the top margin reset from the RichText editable area.
The removal of the margin is a breaking change for custom blocks that reuse RichText within a block. Example:
Before:
After:
It's also breaking the core reusable blocks > edit mode:
Before:
After:
I suspect there are also other cases.
I'm not sure this kind of changes can be made so lightly. Even if this is "just" CSS, it can break things because it's changing the expected rendering.
There has been a recent discussion on Slack about what can be considered a breaking change and what the level of backwards compatibility should be. There's a tendency to consider CSS changes as something that doesn't need backwards compatibility because not part of a "formalized API". Honestly, I really don't mind when discussions like that are made in a so abstract way without considering the real consequences for the developers ecosystem out there.
Trying to keep up with these changes is exhausting and not sustainable, especially when they're not communicated well in advance and with great relevance.
That said, this is breaking also the core blocks thus it's an issue that should be addressed in some way.
The text was updated successfully, but these errors were encountered: