-
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
G2 Block Interface followup #20575
Comments
@mtias Just submitted a PR for the GradientPicker 👍 |
I checked the "Explore a directional "appear" animation to the block toolbar", as I tried making that happen, but could not get it buttery smooth, and it felt interruptive to the experience. So it's been explored, shelved for now, and therefore checked! |
#20782 fixes a few of the items outlined here, including the image dimensions issue. |
Thanks for the comment, @gziolo. I'll get to this as soon as I can. Note that the black plus is a result of TwentyTwenty styling the plus when it shouldn't be. This is reported in Trac where it arguably should be fixed upstream. Separately we can discuss shadow domming such elements, so themes can't style them, intentionally or not. But I don't think we should override it in the block editor css even if we can. |
Here a tiny optimization to bold, italic, and strike icons. Reduced to 14 height instead of 16, to look more even in the toolbar. Green dot in this Figma file indicates update or optimization.
|
We should explore making the tappable hit area of buttons in the top toolbar 48x48 like in the block toolbar, even if not the visual hit area. |
@gziolo I can't reproduce your columns issue: |
Did you try hover + focus? If yes, then it might get fixed together with other changes :) |
I did try hover and focus and I can't reproduce. There are some related issues with the secondary button but none that produce the issue you saw. I think you may have had a ghost of the mixin? |
I spent a bunch of time today in #21476, which fixes the overwhelming majority of issues listed in this thread. It doesn't get us to G2 perfection, but it gets us much farther, and very probably enough to close this ticket in favor of separate individual tickets from now on. One remaining issue is one of button sizes. First off, based on the comment here: #20575 (comment) — bigger tap targets. We can do that — icon buttons in the block toolbar are 48px tall, and unless there are multiple in sequence, they are also 48px wide. Like so: But it does require a bit of jiggery pokery and positioning the focus rectangles so that they are actually visually useful and consistent — those need to become pseudo elements that are positioned carefully inside the hit area of the button. To the question is: would that be an acceptable approach? |
Recently, #19344 was merged as a first step towards addressing the interface learnings outlined in #18667.
It was a big PR, but advancing the block UI is a big undertaking, and there are followups to address. Two immediate ones are high-luminance default colors (#20460), and improving icon consistency (#20464)
As part of working on the PR, though, I wrote down a list of smaller tasks that deserve followup. As we discuss the following list on this ticket, we may even find the need to extract items to their own tickets.
[ ] The block toolbar, when there's space, should be offset 48px to the left, so the block indicator becomes the anchor point.— we may need to rethink this.[ ] Placeholders: consider simplifying further by merging the title with the description and removing the icon. This will scale better to very tiny states, necessary for patterns.— let's either ticket this seperately, or just revisit placeholders entirely to be more decorative.[ ] Unify consistency of resize handles: dots are used in some places, larger hit-area pills are explored in mockups.— Decided to punt this for now, as the tall handles will break for very small images. Open for others to explore.[ ] Refine the gallery block, revisit the idea of popping out the appender at the bottom. Perhaps leverage the new "Replace" button from the Image block instead.Tracked separately in Move Gallery "Add new / Media Library" actions to the Toolbar #21247[ ] List block: explore collapsing list types and indents in subsequent dropdowns.Tracked separately in List block: explore dropdowns. #21477[ ] Icons are missing in the selection mode label indicator.Spun into separate issue: Selection mode: add icon before the label #21479[ ] Block transform menu needs love.Tracked separately in Block Transforms: Refine visuals #21478The text was updated successfully, but these errors were encountered: