-
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
Update the global styles sidebar's root view to use Card components #35547
Conversation
@@ -3,7 +3,6 @@ | |||
align-items: center; | |||
justify-content: center; | |||
min-height: 152px; | |||
margin: $grid-unit-20; |
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.
It's cool that there's no need for custom spacing like that.
@@ -16,24 +19,32 @@ import ContextMenu from './context-menu'; | |||
|
|||
function ScreenRoot() { | |||
return ( | |||
<> | |||
<StylesPreview /> | |||
<Card size="small"> |
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.
To match the spacing in the sidebar header, I had to put "small" as a size for the Card. I wonder if this should be the default (and potentially the only choice).
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.
Possibly, not sure where else we are using it.
Size Change: +23 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Just a small refactoring to the root view in the global styles sidebar. This leverages the Card component to get closer to the in #34574
Maybe there's too match padding between adjacent card bodies but I didn't want to rely on custom CSS.