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

Nav redesign - update dashboard search styles #90586

Merged
merged 4 commits into from May 14, 2024

Conversation

eoigal
Copy link
Contributor

@eoigal eoigal commented May 10, 2024

Fixes https://github.com/Automattic/dotcom-forge/issues/7070

Proposed Changes

  • Moves the search icon to the right
  • Update to use same icon for both search inputs
  • Update icon color to match placeholder text color
  • Adjusts the font size
  • Adjusts the input height and width
  • Updates margin above search inputs to be match on both sites and domains pages

Before

Sites
Screenshot 2024-05-10 at 15 58 45

Domains
Screenshot 2024-05-10 at 15 59 01

After

Sites
Screenshot 2024-05-10 at 15 59 20

Domains
Screenshot 2024-05-10 at 15 59 26

Testing Instructions

  • Go to /sites and the '/domains/manage` pages and confirm search input matches the latest designs.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@eoigal eoigal requested a review from a team as a code owner May 10, 2024 15:01
@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 May 10, 2024
@matticbot
Copy link
Contributor

matticbot commented May 10, 2024

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

Sections (~211 bytes removed 📉 [gzipped])

name     parsed_size           gzip_size
domains       -459 B  (-0.0%)     -211 B  (-0.0%)
hosting       +110 B  (+0.0%)      +14 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.

Copy link
Contributor

@Addison-Stavlo Addison-Stavlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.

A slight nit-pick but I imagine we will see an issue for it if we don't do it here. Can we even out the padding to the right of the icon on these pages? Here is a gif of switching between sites and domains in the sidebar:

icon-padding

Comment on lines 101 to 104
.search-component.domains-table-filter__search.is-open.has-open-icon {
border-radius: 4px;
height: 44px;
border-radius: 2px;
height: 36px;
flex-direction: row-reverse;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that there is also a .is-bulk-domains-page section under the style.scss file in this directory. That could be another optional place to have these styles if we like that better than having them in the tsx file.

@Addison-Stavlo
Copy link
Contributor

Note that this PR will also resolve Automattic/dotcom-forge#7089 as well

@eoigal eoigal force-pushed the update/dashboard-search-styles branch from bf905a1 to 022adfc Compare May 13, 2024 09:25
Copy link
Contributor

@davemart-in davemart-in left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eoigal eoigal force-pushed the update/dashboard-search-styles branch from 2c20efd to c8af8d6 Compare May 13, 2024 18:53
@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/dashboard-search-styles on your sandbox.

Copy link
Contributor

@taipeicoder taipeicoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended 👍

@taipeicoder taipeicoder merged commit 2d7a1dd into trunk May 14, 2024
11 checks passed
@taipeicoder taipeicoder deleted the update/dashboard-search-styles branch May 14, 2024 02:02
@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 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants