-
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
Global pages: Update CSS for headers consistency #94975
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
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 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~11 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Nice work, @taipeicoder! I've noticed some small inconsistencies between Domains and Themes. Probably because of the sub-text below the Themes heading. Screen.Recording.2024-09-27.at.11.37.07.movAlso, on higher resolutions, the problem is still there: Screen.Recording.2024-09-27.at.11.40.26.movAdditionally, I have some mixed feelings about how the Themes heading is positioned now on the page. It feels weird that the heading is not aligned anymore with the theme cards: I think for P2, domains and Sites pages looks ok because the page content is aligned with the heading. This can be seen on the Plugins page too (although tbf I think it already happens on production): Maybe we need some design input in this one? cc @lucasmendes-design 🤔 |
Good catch... they have different breakpoints 🤦♂️
@lucasmendes-design WDYT about dropping the subheading for /themes at least in the global context? That would make it more consistent with the other headers. |
Minor, but also noticed domains placeholder checkboxes are following the old alignment during page load. |
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've noticed some small inconsistencies between Domains and Themes. Probably because of the sub-text below the Themes heading.
I remember I had "fixed" this issue some time ago, not sure why it comes up again 🤔
I am not saying we shouldn't make quickfixes. It can be done, but realistically, we'll keep running and arguing into these inconsistencies in the future, unless we decided to holistically clean up the layout on these global pages. See: pekYwv-4fp-p2#comment-3689 |
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.
Additionally, I have some mixed feelings about how the Themes heading is positioned now on the page. It feels weird that the heading is not aligned anymore with the theme cards
Yes, I find it's very awkward. My vote is to align the heading with the actual width of the content. Or, explicitly make it aligned center (but maybe it's weirder)
@BogdanUngureanu @fushar agreed on the points mentioned above, but for now let's address the issue of jumping margins between Sites/P2s and Domains. There are a couple of things we can follow up on:
Recommendation: Remove subtext.
Recommendation: Full width context should have full width header. |
@taipeicoder Fair enough. I think we should focus on this PR on fixing the inconsistencies between P2, Domains, and Sites with the layout from Sites leading since this will reduce the size of the PR. I think there's a more complex issue in plugins and themes pages. I've spent Friday a bit on a rabbit hole on the Themes page. Some issues I've found there:
The plugins page suffers the same problems. My recommendation is to split this into 3-4 PRs:
This way we can work in parallel on all of them. 😄 I agree we should do it holistically, but I think this should be limited to the global view, but not for all views. 😄 This is because on site-specific pages we have a different type of layout - if we tackle it everywhere we'll probably blow up in scope, IMO. @taipeicoder @fushar WDYT? :) |
Sounds good to me 🙂 |
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.
Alright, I've reduced the PR scope to just the domains page, and added improvements aligning the header with the search input field and the domain table. This is what I'm proposing: Screen.Capture.on.2024-10-01.at.23-06-23.mp4 |
@BogdanUngureanu @fushar this is ready for another review. |
@taipeicoder Looks better! However, there's still a small inconsistency on a higher resolution. Screen.Recording.2024-10-02.at.12.14.12.mov |
I can confirm this ☝️ |
I'll have to go back to the drawing for this one. The main problem is that /sites has this negative margin for its container while the rest don't. This makes breakpoints and max-widths hard to work around because it will always have to take into account that negative margin. The cleanest way is for the other pages to have this negative margin as well. |
I'll close this one since it's a bit stale and we're back to the drawing board. |
Fixes:
Proposed Changes
Currently, the global pages /sites, /domains, /themes, and /plugins header have different padding/margin.
See recording for reference:
Screen.Recording.2024-09-26.at.10.12.06.mov
This PR updates the CSS for headers consistency.
Why are these changes being made?
Contributes to the overall WordPress.com polish.
Testing Instructions
Pre-merge Checklist