-
Notifications
You must be signed in to change notification settings - Fork 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
Themes global view: Show global sidebar on theme #93928
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
@@ -140,7 +154,8 @@ $button-border: 4px; | |||
display: flex; | |||
gap: 16px; | |||
flex-direction: column; | |||
padding: 0; | |||
padding-top: 0; | |||
padding-bottom: 0; |
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.
I made this change to remove a horizontal scrollbar.
@@ -74,9 +74,9 @@ body.command-palette-modal-open { | |||
} | |||
|
|||
// Themes sets it own padding/margin | |||
.is-section-theme &, | |||
.is-section-theme.has-no-sidebar &, |
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.
Added has-no-sidebar
class since some /theme pages will now have a sidebar.
@@ -1014,11 +1014,6 @@ $font-size: rem(14px); | |||
overflow: initial; | |||
} | |||
} | |||
.is-section-theme { | |||
.layout__secondary { | |||
transform: translateX(-100%); |
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.
This was hiding the sidebar in all cases, on theme pages.
@@ -36,6 +37,7 @@ export default function ( router ) { | |||
noSite, | |||
fetchThemeDetailsData, | |||
details, | |||
addNavigationIfLoggedIn, |
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.
Adds the sidebar navigation. We'll likely want to follow up with a custom sidebar to highlight the Themes item.
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.
This makes the individual themes page at the site level have a sidebar too, which I think is also an improvement there as well!
However a small regression at an odd viewport. I notice here if you reload the browser at the site level showcase, the individual theme bleeds behind the sidebar now. (I assume due to removal of that translateX -100% rule.)
This doesn't seem to happen if i start from the sites dashbaord, so I assume something in those stylesheets is carrying over to let it work in that case.
4487a5e
to
4dfcf61
Compare
@Addison-Stavlo Thanks for catching that! I'll keep the change then. 😄
Fixed, thanks! I'd missed another |
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.
Looks good on my end!
Related to #92645
Proposed Changes
Why are these changes being made?
Testing Instructions
Pre-merge Checklist