Skip to content
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

Improve inserter style #3080

Merged
merged 5 commits into from
Oct 24, 2017
Merged

Improve inserter style #3080

merged 5 commits into from
Oct 24, 2017

Conversation

jasmussen
Copy link
Contributor

Description

Aims to fix #1497.

GIF:

inserter

This moves the tabs to the top, it changes the style of the inserter a bit, and improves the focus styles per #3039.

Note: I can't tab into the Tabs — pun not intended. Not sure why this is, would appreciate advice.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@codecov
Copy link

codecov bot commented Oct 20, 2017

Codecov Report

Merging #3080 into master will decrease coverage by 0.91%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3080      +/-   ##
=========================================
- Coverage   32.32%   31.4%   -0.92%     
=========================================
  Files         216     216              
  Lines        6134    6358     +224     
  Branches     1079    1149      +70     
=========================================
+ Hits         1983    1997      +14     
- Misses       3502    3643     +141     
- Partials      649     718      +69
Impacted Files Coverage Δ
editor/inserter/menu.js 49.19% <100%> (ø) ⬆️
blocks/editable/index.js 8.63% <0%> (-1.87%) ⬇️
editor/modes/visual-editor/inserter.js 91.66% <0%> (-1.67%) ⬇️
components/clipboard-button/index.js 0% <0%> (ø) ⬆️
editor/block-toolbar/index.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/sibling-inserter.js 0% <0%> (ø) ⬆️
blocks/block-controls/index.js 0% <0%> (ø) ⬆️
editor/sidebar/block-inspector/index.js 0% <0%> (ø) ⬆️
editor/provider/index.js 0% <0%> (ø) ⬆️
editor/post-title/index.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8db04b...3a5643d. Read the comment docs.

@afercia
Copy link
Contributor

afercia commented Oct 20, 2017

@jasmussen nice. Since the tabs disappear when searching, navigation from the search field to the results doesn't have any "barrier" and this seems a good thing to me.
If this goes in, please do feel free to close #1588

No need I review it, I'd just like to see the Inserter in a stable state so we can address accessibility 🙂 I've played a bit with NavigableMenu and I think with a few adjustments it could be easily reused for the Inserter and allow to remove a lot of code in InserterMenu. There's #1823 for this. Please go ahead! :shipit:

@mtias mtias added the [Feature] Inserter The main way to insert blocks using the + button in the editing interface label Oct 20, 2017
@@ -70,7 +70,7 @@
width: calc( 100vw - 20px );

@include break-medium {
width: 300px;
width: 320px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed for all popovers or should apply only to the inserter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point. I moved the width stuff around to better spots. Had to also give a width to the publish dropdown now as it inherited teh width from here.

screen shot 2017-10-21 at 09 43 33

This also adds a width to the publish dropdown, which relied on the width given by the inserter.
@jasmussen
Copy link
Contributor Author

Given then thumbs up on this PR, and the most recent width CSS fix, I think this branch is good to merge!

However since today — since right now — is release day for 1.5, I'm not going to just merge haphazardly. @pento if you'd like this PR in, it's got my stamp of approval as working, but up to you whether you want to include in this release. Feel free to merge if yes, otherwise I'll do it next week and have it in 1.6.

@pento
Copy link
Member

pento commented Oct 21, 2017

Let's put it in 1.6, just in case any regressions crop up.

@jasmussen
Copy link
Contributor Author

👍👍

@jasmussen
Copy link
Contributor Author

1.5 is released, which means this one can go in!

@jasmussen jasmussen merged commit 222d55f into master Oct 24, 2017
@jasmussen jasmussen deleted the update/inserter-style branch October 24, 2017 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inserter: go larger font-size and single column
4 participants