-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Editor stylesheet CSS specificity issues #10067
Copy link
Copy link
Closed
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.CustomizationIssues related to Phase 2: Customization effortsIssues related to Phase 2: Customization effortsGood First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Feature] Custom Editor StylesFunctionality for adding custom editor stylesFunctionality for adding custom editor styles[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.CustomizationIssues related to Phase 2: Customization effortsIssues related to Phase 2: Customization effortsGood First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Feature] Custom Editor StylesFunctionality for adding custom editor stylesFunctionality for adding custom editor styles[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
Editor stylesheet CSS specificity issues.
To Reproduce
h2line-heightrule is being overruled by a few rules in core with higher specificity:Expected behavior
Core styles should have less specificity to allow for an easier time adding a comprehensive custom editor stylesheet.
Could the above rules not be written like:
This allows the editor stylesheet to correctly trump the core styles.
This is only a brief example, but I'm sure there are others. I'd be happy to list all problematic styles that I find if it helps.
Additional context
Gutenberg 3.8 and WordPress 4.9.8