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

feat(header): L3-4326 updated spacing and search click #408

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

constantinehuzenko
Copy link
Contributor

@constantinehuzenko constantinehuzenko commented Oct 29, 2024

Jira ticket

L3-4326
L3-4328

Screenshots

Before After
image image
Before After
image image

Summary

Remove margin from menu item, fixed logo margin, fixed auction links (need to update remix to see change), updated search click

Change List (describe the changes made to the files)

  • src/components/Navigation/NavigationItem/_navigationItem.scss: fixed mobile links
  • src/components/Navigation/NavigationList/_navigationList.scss: removed unnecessary spacing
  • src/components/Search/Search.tsx: added click on container for mobile view
  • src/site-furniture/Header/_header.scss: removed margin top for logo

Acceptance Test (how to verify the PR)

  • verify that auctions links are aligned on mobile
  • verify there is no bottom spacing after Editorial menu on mobile
  • verify that you can open search clicking on search container, not icon only (mobile)

Regression Test

  • (Optional) Add verification steps to make sure this PR doesn't break old functionality

Evidence of testing

  • Post logs, screenshots, etc

Things to look for during review

  • PR title should correctly describe the most significant type of commit. I.e. feat(scope): ... if a minor release should be triggered.
  • All commit messages follow convention and are appropriate for the changes
  • All references to phillips class prefix are using the prefix variable
  • All major areas have a data-testid attribute.
  • Document all props with jsdoc comments
  • All strings should be translatable.
  • Unit tests should be written and should have a coverage of 90% or higher in all areas.

New Components

  • Are there any accessibility considerations that need to be taken into account and tested?
  • Default story called "Playground" should be created for all new components
  • Create a jsdoc comment that has an Overview section and a link to the Figma design for the component
  • Export the component and its typescript type from the index.ts file
  • Import the component scss file into the componentStyles.scss file.

Copy link

netlify bot commented Oct 29, 2024

Deploy Preview for phillips-seldon ready!

Name Link
🔨 Latest commit 7851874
🔍 Latest deploy log https://app.netlify.com/sites/phillips-seldon/deploys/67228c083ca5450008d6f830
😎 Deploy Preview https://deploy-preview-408--phillips-seldon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@adietrich3074 adietrich3074 left a comment

Choose a reason for hiding this comment

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

Why are we removing the space between the language selector and the main nav list? I remember being explicitly told to add this in. Was the figma for the mobile nav updated?

@constantinehuzenko
Copy link
Contributor Author

Why are we removing the space between the language selector and the main nav list? I remember being explicitly told to add this in. Was the figma for the mobile nav updated?

we don't have it on Prod, now I'm thinking if we should have it there
image

@@ -69,6 +69,10 @@
margin-bottom: 0;
}

a {
display: inline;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should probably be inline-block. Unless this is to shrink the clickable area

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking on mobile, I think we may want to add a media query to only apply this to desktop sizes. I think on mobile the expectation would be to have the whole menu bar be clickable, no?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@constantinehuzenko Was this added explicitly for mobile? I think the expectation on mobile would be that the whole line would be the link and not jsut the texts, because of how we have styled it.

On desktop I would make it inline-block. Also the LI seems to be inline. That should be made to be inline-block too or removed all together .

@davidicus
Copy link
Collaborator

As Alex mentioned, there is spacing in between the language selector and the last link as shown in the figma https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=10572-6185&node-type=canvas&m=dev

@constantinehuzenko
Copy link
Contributor Author

As Alex mentioned, there is spacing in between the language selector and the last link as shown in the figma https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=10572-6185&node-type=canvas&m=dev

Ryan approved that we shouldn't add space there

@@ -69,6 +69,12 @@
margin-bottom: 0;
}

a {
@include isHeaderMobile {
display: block;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This take care of mobile but you still have the pointer on desktop when its not on the link. If we take the cursor pointer off the li it will just turn to pointer when on anchor.

@constantinehuzenko constantinehuzenko merged commit 01391e2 into main Oct 30, 2024
14 checks passed
@constantinehuzenko constantinehuzenko deleted the L3-4326-header-updates branch October 30, 2024 20:54
davidicus pushed a commit that referenced this pull request Oct 30, 2024
# [1.86.0](v1.85.1...v1.86.0) (2024-10-30)

### Features

* **header:** L3-4326 updated spacing and search click ([#408](#408)) ([01391e2](01391e2))
@davidicus
Copy link
Collaborator

🎉 This issue has been resolved in version 1.86.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants