-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: main
Are you sure you want to change the base?
Conversation
…re/165/analysis-hero
Co-authored-by: rmccar <[email protected]>
Co-authored-by: rmccar <[email protected]>
.../bitmaps_reference/ds-vr-test__components_hero_example-hero-analysis_0_document_1_tablet.png
Outdated
Show resolved
Hide resolved
.../bitmaps_reference/ds-vr-test__components_hero_example-hero-analysis_0_document_2_mobile.png
Outdated
Show resolved
Hide resolved
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.
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.
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.
Now this is called the "grey" variant the title and description should be updated |
The Breadcrumbs component was adding undefined to its classes when no class was provided in the example. So, I added default('') to it in the code. |
Would you be able to rewrite the description, it doesn't really describe the change |
Co-authored-by: rmccar <[email protected]>
What is the context of this PR?
ONSDESYS-165....
Created new Hero variant as per the Figma.It has a grey background with logo on the right.
This new variant will also have Breadcrumbs, title, sub-header and horizontal description list(link to the PR)
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.