-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 quick toolbar #2151
Polish quick toolbar #2151
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2151 +/- ##
==========================================
- Coverage 20.33% 20.28% -0.05%
==========================================
Files 136 136
Lines 4274 4283 +9
Branches 724 728 +4
==========================================
Hits 869 869
- Misses 2872 2877 +5
- Partials 533 537 +4
Continue to review full report at Codecov.
|
This fixes #1742.
There have been legitimate concerns about the quick toolbar being too visually heavy. This commit chunks all the toolbar groups snugly together, and reduces the visual silhuette with a softer drop shadow. Let's discuss this.
Put that in a separate PR.
a1e7857
to
bf9f8c0
Compare
Reverted the table CSS, moved to a separate PR, #2152, and rebased. |
label={ __( 'Toggle extra controls' ) } | ||
icon="ellipsis" | ||
/> | ||
<div className="editor-visual-editor__group"> |
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.
Do we need an extra div for this? From the screenshot it seems we can just remove some margins? Or am I missing something?
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 moved the drop shadow to a parent container, and that container has to wrap inline-block, and not be full width like the block controls container is.
But I agree it's not super elegant. I'll think about how this can be improved.
@@ -1,7 +1,7 @@ | |||
.components-toolbar { | |||
margin: 0; | |||
border: 1px solid $light-gray-500; | |||
box-shadow: $shadow-popover; | |||
//box-shadow: $shadow-toolbar; |
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.
Remove commented line?
This compacts the quick toolbar, and softens the shadow. It is a new version of #2151, but is essentially the same code. The purpose of this is to visually simplify the quick toolbar so it doesn't feel so heavy. It also unifies the look from mobile to desktop, and frees up some space. The feedback on the previous PR still stands — there's an extra div here. But even after sleeping on it, I can't think of a better way to do this. The thing is, we are moving the drop shadow from each of the three groups into a single group that wraps them all. This has to be an inline-block so it's no wider than the toolbars themselves, but the parent element has to be block so it can have position sticky. Props to @paaljoachim for actually suggesting this a long time ago. 💖
Closing this in favor of #2359. This was too hard to rebase. |
…lipped-on-oneplus Update Gutenberg ref to point to text-clipping fix attempt
This PR bunches together all the quick toolbar groups, and softens the drop shadow:
I liked the separate groups before. It made it very clear, for example, that alignments were a group where if you toggled one, the other was untoggled. But at the same time this benefit may largely be theoretical, and they are still grouped — separated by a vertical line. By grouping them together, aside from getting a little more space, we simplify the visual silhuette, which has been brought up a number of times.
Thoughts?
Edit: reverted a table aspect of this PR and made it separate.