-
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
List View: Visual and design improvements #29769
Conversation
Size Change: +1.04 kB (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Tests well for me. One small thought: Currently the indentation is multiples of 24px, and space between icon and label is 6px. If we increase those values to 28px and 8px respectively we see slightly improved visual alignment: Obviously the trade-off is the additional 6px of horizontal space consumed. Edit: Added the Needs Figma Update label as I don't think we have this component in the library. |
Excellent point, thank you. It's a bit trickier than just perfect metrics, though, because the icon does not fill out the full 24px space, so we actually have to optically hint a little bit. Here's the structure before I made any changes, which is a pure 24px indentation: Note the orange margin here, it's 6px, or half of the 12px grid. Here's what happens if we change that to 24px + 6px: Now the icon footprint aligns perfectly to the text above. But the icon inside does not, it's indented. The change I pushed, changes the indentation to 24px + 4px, i.e. 2px less than the text is indented: When pushing the change, it seemed better. But looking now, I'm not actually sure 🙈 Here's a version where the indentation is 24px + 2px: That last change I think looks better, but I haven't pushed it. What do you think? |
Cool, 4 is what I pushed. |
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.
Figma component added https://www.figma.com/file/e4tLacmlPuZV47l7901FEs/WordPress-Design-Library?node-id=9490%3A85.
Thanks so much for the review. Because this one affects all modals, even if tested well, I'm going to let it sit for the weekend to gather additional sanity checks. I don't see how anything should be negatively affected, but still, now there's the weekend! |
Description
In #26141 and #29727, a few tiny design refinements are shown that affect the modal dialog, and items in the list view. Specifically:
This PR addresses all of those, so that #26141 can be about adding the folding chevrons alone, and #29727 can be about adding the drag handle and graduating the drag and drop behavior.
How has this been tested?
Please test every screen that leverages the list view, including the Site editor with the persistent list view, the post editor block navigation, and the modal list view from the Navigation block:
Observe the new design is applied across, but with no regressions.
Specifically please test also modal dialogs such as keyboard shortcuts or block manager, to see that the tweaked margin works well.
Checklist: