-
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
Domains: Update breadcrumbs styling to reflect latest Figma designs #58601
Conversation
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-21477 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~12 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. |
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.
LGTM! I tested in both mobile and desktop viewports, and all the changes are reflected. I left a single nitpicky comment, but it should be good to go without addressing it anyway.
className="breadcrumbs__item-label breadcrumbs__item-label--clickable" | ||
href={ item.href } | ||
> | ||
<a className="breadcrumbs__item-label is-clickable" href={ item.href }> |
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.
Is there any reason for the is-clickable
class? I think it can be removed:
<a className="breadcrumbs__item-label is-clickable" href={ item.href }> | |
<a className="breadcrumbs__item-label" href={ item.href }> |
This should be good to go, as I couldn't find any styles defined for it specifically.
Neither for the breadcrumbs__item-label--clickable
class.
I wonder why I added it in the first place 🤔
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.
That's true, it isn't used, good point 🤔 ok, I'll remove it, if we need we can readd it in the future 🙂
@leonardost A special thanks for this one. I'm also to blame for some of the styling divergences, as I added a few of them on #57328 - although I can't remember if that was the latest version at the time, still, thank you 🚀🙌🏻 |
@rafaelgalani no worries, thank you for the review! 😄 |
Hey @leonardost, thanks for this. Some comments:
Another point that I added in later and I mentioned in one of @gius80's PRs is this: |
Thanks for the review @poligilad-auto! I've fixed these regressions - they happened when there was only one breadcrumb item. Let me know if it's ok now: About the breadcrumb height, @gius80 is doing some modifications to make it sticky in #58519, so we'll fix that there or in a follow up PR 👍 |
Almost :) On the domains page the title "Domains" should be 16px, like it was before.
👍
👍 |
Sorry, I had missed that. I updated the font size for the "Domain" and "All domains" breadcrumbs both in desktop and mobile views, now it should be 💯 🙂 I'll deploy this PR, if anything else slipped by we can open another one 👍 |
…58601) * Update breadcrumbs styling to reflect latest Figma designs * Change last item weight to 500 and add hover color * Remove unused "is-clickable" CSS class from links in breadcrumbs * Fix last breadcrumb item and mobile breadcrumb item stylings * Make lone breadcrumb items have font-weight 600 * Increase font-size of breadcrumb when there's only one item
Changes proposed in this Pull Request
When I had implemented #57038, I based the breadcrumbs design on i3 of the domain management pages redesign project (
hlVh2q24ad6MCwlwNnE9PQ-fi-600%3A53112
), but the latest iteration was i4. This PR updates the styling to reflect the newest designs. Thanks @hambai for noticing this!The main differences are:
--color-neutral-50
=rgb(100, 105, 112)
=#646970
)--color-neutral-80
(=rgb(44, 51, 56)
=#2c3338
)--color-neutral-10
=rgb(195, 196, 199)
=#c3c4c7
)--color-neutral-80
when hoveredCheck the changes between the following screenshots:
Before:
After:
For the mobile view, the only difference is that the label was darker and now it's lighter.
Before:
After:
Testing instructions