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

Add new "grey" hero variant #3450

Open
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

precious-onyenaucheya-ons
Copy link
Contributor

@precious-onyenaucheya-ons precious-onyenaucheya-ons commented Dec 9, 2024

What is the context of this PR?

ONSDESYS-165....

Created new Hero variant as per the Figma.

Prototype link

Due to the changes in the HTML structure, I adjusted the styling by removing the margin applied to the text element when followed by a button. Instead, I added a margin to the top of the button to ensure consistent spacing.

How to review this PR

Check that new src/components/hero/example-hero-grey.njk in Hero component matches the figma design

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@precious-onyenaucheya-ons precious-onyenaucheya-ons marked this pull request as ready for review December 16, 2024 15:40
@admilne
Copy link
Contributor

admilne commented Dec 18, 2024

@precious-onyenaucheya-ons it looks like there are a couple of differences to the design and what is asked for in the description of the ticket.

  1. It looks like the first couple of items in the breadcrumb are missing in the mobile view. Also, the arrows change direction for mobile.
  2. Again in mobile view, the logo should appear after the title but before the text. It's currently appearing after the text.
  3. Might be worth checking the gap between the topic key word ('Analysis') and the title. It looks like there is a smaller gap in the design.

This is the screenshot running the component locally
image

This is the screenshot of the design in Figma
image

src/components/hero/_macro.njk Outdated Show resolved Hide resolved
src/components/hero/_macro.njk Outdated Show resolved Hide resolved
src/components/hero/_macro.njk Outdated Show resolved Hide resolved
src/components/hero/_macro.njk Outdated Show resolved Hide resolved
src/components/hero/_macro.spec.js Outdated Show resolved Hide resolved
src/components/hero/example-hero-analysis.njk Outdated Show resolved Hide resolved
src/components/hero/_macro.spec.js Show resolved Hide resolved
src/components/hero/_hero.scss Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

The gap between the top of the hero and the breadcrumbs is much bigger than in the figma or prototype

Screenshot 2024-12-18 at 12 30 10

Copy link
Contributor

Choose a reason for hiding this comment

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

The padding top is still much bigger than in the figma

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the last thing I have that needs addressing, I think the padding top just needs reducing when using breadcrumbs

src/components/hero/_macro-options.md Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth checking the margin below the topic. It looks like the gap is smaller in the design
image

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may have a slight issue with the description list. One of the requirements is:

description list component added horizontally and it can include text or hyperlinks - https://jira.ons.gov.uk/browse/ONSDESYS-189

I don't think we can currently have links in here.

@rmccar
Copy link
Contributor

rmccar commented Jan 6, 2025

Now this is called the "grey" variant the title and description should be updated

@rmccar rmccar changed the title Feature/165/analysis hero Add new "grey" hero variant Jan 6, 2025
src/scss/vars/_colors.scss Outdated Show resolved Hide resolved
Comment on lines +90 to +94
&--grey & {
&__details {
padding-top: 1rem;
}
}
Copy link
Contributor

@rmccar rmccar Jan 10, 2025

Choose a reason for hiding this comment

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

This needs to be changed when breadcrumbs are used not when we use the grey variant

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

Successfully merging this pull request may close these issues.

4 participants