-
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
Polish various polish #3717
Polish various polish #3717
Conversation
This probably needs to be smarter, as it actually does need to change the label when actually _updating_ a post — so not autosave, but when clicking the "Update" button.
This ensures that on long posts, the plus doesn't sit too snugly against the bottom.
This puts the now all flat block-docked toolbar snug against the top editor bar when sticky invokes. It also fixes jumpiness with the classic text toolbar.
b2ff81d
to
1685c50
Compare
Codecov Report
@@ Coverage Diff @@
## master #3717 +/- ##
=======================================
Coverage 37.45% 37.45%
=======================================
Files 277 277
Lines 6707 6707
Branches 1222 1222
=======================================
Hits 2512 2512
Misses 3536 3536
Partials 659 659
Continue to review full report at Codecov.
|
Nice changes! Things look good to me, just wondering if some of the magic numbers in the CSS should become proper variables. |
I hear you, and I have a separate to-do item to look at converting more stuff to variables separately, because it's a more holistic task given the recent changes in block border widths and paddings. I think I can clean up a lot. But the number for the double-stacked Classic Text toolbar is hard to convert to variables, as it's definitely an entirely custom toolbar type. I'll look at it, but I prefer to do that separately. |
Going to merge this. |
@@ -1,21 +1,37 @@ | |||
$empty-paragraph-height: $text-editor-font-size * 4; | |||
|
|||
.editor-default-block-appender { |
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 think those styles should be moved out of the editor/components
directory. Because they only make sense in the edit-post
layout (not in p2 for example). In editor/components
we should think of the components (and styles) as reusable components that should look good when inserting them but if we want to position them properly etc... it should be done in the "layout" IMO.
In general, I do this in the. modes/visual-editor/style.scss
by specifying the parent .editor-visual-editor +.editor-default-block-appender {
I think that should be opened as a separate issue. I'll try and fix the stylesheet changes you suggested Riad. |
This is a tiny PR to address feedback from #3717 (review). It puts CSS styles where they belong, for component reusability.
This PR does a few things:
Screenshots