-
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
Global Styles Sidebar: Clean up button spacing and semantics #40533
Conversation
@jasmussen I'd love to get your design feedback here 🙏 Also if you or @critterverse already have a decision on #40478, we could probably work that into this PR stack too! |
Size Change: +24 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
Nice one, seems like a good improvement overall. Trunk looks like this: This PR makes it look much more considered in the spacing between buttons and separators: One small thing — the descriptive text for "Blocks" lines up better in trunk. There, it shares left margin with the button: In this PR the description goes closer to the edge: Looking back to #38934, it seems this PR brings us very close, and mainly that paragraph that stands out. Nice work! |
Thanks for the quick review @jasmussen!
Highlighting this note in my OP in case it was skimmed over:
With that in mind, should we just go with an ad hoc approach here? I'm hesitant to turn this into a legitimate pattern unless we have a clear design guideline (e.g. inset all adjacent descriptions and headings when an ItemGroup is borderless). To be scalable, I think it should be visually and semantically clear which node the description is associated with — is it describing the entire |
Sorry I missed that. I think we should be ad-hoc here, but leave a comment in the CSS calling out the incongruety. That way, when we come in to revisit, we'll know that it's safe to remove. In general I share the desire to avoid hacks and bespoke CSS like this, it's not good form. In this case, however, we know that it will be revisited, and in the not too distant future as well. #40478 might remove the descriptive text entirely, and the separate explorations in #36667 (comment) recast Global Styles in a dark context where the paddings will need a new approach regardless. What do you think? |
Yep, that sounds perfectly reasonable to me 👍 Thanks for the thoughtful replies, as always. I'll whip up something to recreate the inset. |
This is temporary. Will fully address in a separate PR.
Part of #38934
Stacked on #40526
🚧 Status: Requesting design feedback (Later I'll be splitting this PR for easier code review)
What?
Cleans up spacing and semantic issues with navigator buttons in the Global Styles Sidebar.
Why?
To refine the visual consistency of the Global Styles sidebar.
How?
NavigationButton
abstraction toNavigationButtonAsItem
so it's clearer that it's anItem
, and thus needsItemGroup
parent.Testing Instructions
npm run dev
Screenshots or screencast
Main screen
Updated to reflect final tweaks.
Header
More after shots