Skip to content
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

Merged
merged 6 commits into from
Dec 6, 2021

Conversation

leonardost
Copy link
Contributor

@leonardost leonardost commented Nov 29, 2021

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:

  • All labels are the same size (13px) and color (--color-neutral-50 = rgb(100, 105, 112) = #646970)
  • Only the last breadcrumb is bold (font-weight 600) and has color --color-neutral-80 (= rgb(44, 51, 56) = #2c3338)
  • The separators are lighter in color (--color-neutral-10 = rgb(195, 196, 199) = #c3c4c7)
  • Breadcrumb links become color --color-neutral-80 when hovered

Check the changes between the following screenshots:

Before:

Screen Shot 2021-11-29 at 16 51 39

After:

Screen Shot 2021-11-29 at 16 45 38

For the mobile view, the only difference is that the label was darker and now it's lighter.

Before:

Screen Shot 2021-11-29 at 17 14 55

After:

Screen Shot 2021-11-29 at 17 11 55

Testing instructions

  • Build this branch locally or open the live Calypso link
  • Go to "Upgrades > Domains"
  • Select one of your registered domains or domain connections
  • If you're in the live Calypso link, please append ?flags=domains/transfers-redesign to your URL to enable the appropriate feature flag
  • Select the "Transfer your domain" options (or any other page that has breadcrumbs)
  • Ensure the layout updates described are present

@leonardost leonardost requested a review from a team as a code owner November 29, 2021 19:53
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 29, 2021
@leonardost leonardost changed the title Update breadcrumbs styling to reflect latest Figma designs Domains: Update breadcrumbs styling to reflect latest Figma designs Nov 29, 2021
@github-actions
Copy link

github-actions bot commented Nov 29, 2021

@matticbot
Copy link
Contributor

matticbot commented Nov 29, 2021

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~12 bytes added 📈 [gzipped])

name     parsed_size           gzip_size
domains        +48 B  (+0.0%)      +12 B  (+0.0%)

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@leonardost leonardost added the [Feature Group] Emails & Domains Features related to email integrations and domain management. label Nov 29, 2021
Copy link
Contributor

@rafaelgallani rafaelgallani left a 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 }>
Copy link
Contributor

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:

Suggested change
<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 🤔

Copy link
Contributor Author

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 🙂

@rafaelgallani
Copy link
Contributor

@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 🚀🙌🏻

@leonardost
Copy link
Contributor Author

@rafaelgalani no worries, thank you for the review! 😄

@leonardost leonardost requested a review from a team December 1, 2021 14:28
@poligilad-auto
Copy link

Hey @leonardost, thanks for this.

Some comments:

  • The main "Domains" page shouldn't have changed:
    image
    It should look like it used to, with no hover or link:
    image

  • For mobile: I guess I didn't add a specific point about this, but the text should actually stay --color-neutral-80.

Another point that I added in later and I mentioned in one of @gius80's PRs is this:
Mobile: header height should be 60px on mobile.
I'm not sure where this belongs.

@leonardost
Copy link
Contributor Author

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:

Screen Shot 2021-12-01 at 17 06 24

Screen Shot 2021-12-01 at 17 06 32

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 👍

@poligilad-auto
Copy link

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:

Almost :) On the domains page the title "Domains" should be 16px, like it was before.

For mobile: I guess I didn't add a specific point about this, but the text should actually stay --color-neutral-80.

👍

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 👍

👍

@leonardost
Copy link
Contributor Author

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 👍

@leonardost leonardost merged commit acbc00c into trunk Dec 6, 2021
@leonardost leonardost deleted the fix/breadcrumbs-styling branch December 6, 2021 23:19
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 6, 2021
nelsonec87 pushed a commit that referenced this pull request Dec 9, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants