-
Notifications
You must be signed in to change notification settings - Fork 0
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
Restore html
scope in reset.scss selectors
#1
Conversation
This option is the simple fix.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @peXed. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +12 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
added PR to the wrong repository |
Fixes WordPress#57176
(simplest option)
What?
Raise the specificity of reset selectors to what they were before #46752 so that the CSS reset overrides styles in wp-admin/css/common.css.
Why?
The admin CSS bleed affects the iframed post editor in 'classic' themes that do not specify
font-size
,line-height
and/orbackground-color
for thebody
. In addition to the extra discrepancies between editor and front end, the smaller text is more difficult to read when editing post content, and the background reduces color contrast.How?
Revert the
reset.scss
change from #46752.Testing Instructions
body
element coming fromcommon.css
(orload-styles.php
ifSCRIPT_DEBUG
isfalse
). With the PR applied, thebackground
,color
,font-family
,font-size
andline-height
properties should have a line through them (themin-width
is not reset, but that seems to be fine).