-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix separator styles #30255
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
Fix separator styles #30255
Conversation
Size Change: +26 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
@@ -7,7 +7,7 @@ | |||
|
|||
// Default, thin style | |||
&:not(.is-style-wide):not(.is-style-dots) { | |||
max-width: 100px; | |||
width: 100px; |
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 really don't love this line. It makes wide
and full
alignments on this block meaningless. Not sure if we could remove it though.
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.
that's an opinionated style, basically the default separator is just a small one. This PR just fixes the separator behavior that broke recently.
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.
right, I just think this style is a really bad one because its so hard to work around. TT1 Blocks opts into opinionated styles, and uses separators in the header and footer - even though they are set to align wide, the separator is forced to 100px, which isn't what the design wants. We could override it with specific widths for alignwide and alignfull but that feels unsatisfactory when we have alignment styles in Gutenberg.
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 suggest you open a dedicated issue and discuss with other designers. For now, I'd like to focus on making the editor and frontend match.
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 would echo Riad, I think there's a great opportunity to vastly improve our opinionated styles, to make them fantastic and if necessary, even more opinionated.
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.
Before:
After:
Note that the Empty Theme opts into theme.scss styles, which make the separator light gray. But it also uses a 2px bottom border, rather than 1px above and 1px below, observe the competing styles:
It seems like we could remove the duplicate styles from the theme.scss file, since there's now a 2px style for the default separator.
That's a small thing though, up to you.
Related #29976
Just make the separator styles match between the editor and the frontend.