-
Notifications
You must be signed in to change notification settings - Fork 359
Add heading rules to varia based themes #2761
Conversation
varia/style-editor.css
Outdated
.wp-block-group { | ||
/* Treating H2 separately to account for legacy /core styles */ | ||
} |
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.
Are we getting this empty rule because of the comment?
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.
seems like it. interestingly switching to a //
comment removes it...
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.
Yeah, I think the Sass compiler completely removes //
but it keeps /* … */
.
I believe there’s a separate, later script on wpcom that minifies each theme stylesheet which removes all code comments in CSS.
Looking at this some more I think it's a bad idea, see #2551 (comment) |
This is what I’m getting on my end with RTL turned on inside of a group block: Looks like the alignment is still getting reversed in RTL, and I think its supposed to stay persistent regardless of the RTL setting. For other text-align utility class rules we’re using a Sass flag to ignore the RTL so the floating position isn’t automatically flipped, which breaks the expected behavior. See here: themes/varia/sass/blocks/utilities/_style.scss Lines 6 to 10 in 96c77a2
|
I wonder if we can just remove these rules and let core handle it all? |
This is a different approach to #2551 which fixes all Varia based themes.