-
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
[Inserter]: Replace text in Reusable
tab with an icon
#45851
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: +532 B (0%) Total Size: 1.3 MB
ℹ️ View Unchanged
|
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.
@jasmussen I'm not sure about the gap to align the icon with the search icon, they seem unrelated elements. It feels the reusable tab should be consistent within the tab list first and go to the edge: |
It not a huge deal, but it looks a bit awkward to me. The offset alignment works (just about) with the text tabs because they're all the same width. With the reusable tab the icon just looks mis-aligned 😕 I agree the original state of the PR is not perfect either though. One other idea: does the active indicator need to go to the edge? If it didn't we could have nice alignment and a square reusable tab: |
Maybe I'm the odd one out, but this one feels the best right now: Considering with the development of the library we might change things, I don't think it's worth making too many mods that will make the tab view inconsistent compared to the other tabbed views (post / block inspector; appearance / settings; etc). |
Perhaps also one of the issues is that the gap between search and tabs is nonexistent, so it creates a visual coupling of all the elements. It feels like there should be some space between a focused tab and the search. |
Also not for this PR, as I don't want to add further work to it, but it'd be nice on the "reusable blocks" panel to add some text explaining what they are: "Saved blocks that can be reused across the site. Changes to them are synchronized." etc |
Thanks for tweaking the styles @jasmussen! I guess we can land with 🟢 CI, now. |
What?
Alternative of #45847
If we go forward with this one, it will need some design input for the change of the width in the
reusable
tabpanel button, if needed.Screenshots or screencast