-
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
Simplify CSS for the code block #27314
Conversation
ed41acd
to
d92ae49
Compare
Size Change: -10 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm always careful when we make a change to the style.scss of a core block. They affect every instance of the block in use, so we should move carefully.
In this case, however, the change seems good and obvious. I'll CC: @kjellr so when he's back he can sanity check whether we need to rewind this PR, but in the mean time, cool PR!
Thanks @aristath I was also worried about that, which is why I made a PR just for this one change! |
Description
This moves the
display: block;
rule to the front end, so that the frontend and backend match.The HTML spec indicates that when a code element is used inside a pre element it represents a block of code, so I think this CSS fits with that approach.
How has this been tested?
Tested in TwentyTwentyOne where this line came from
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: