-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Header: Support custom logos (#1281)
* feat: add logo prop to the Header component to allow for custom logo to be added chore: add test cases to the Header component to support testing the logo prop fix: remove unused import * fix: update code style to use the _logo variable name, and update the test case to mock the <CrownLogo> and <CoatLogo> components * fix: improve the logo props to allow for null to be passed in to represent no logo * fix: show the custom logo even for GovUK branded pages * feat: update storybook for Header component to reflect new options * Update components/header/src/Header.tsx Co-authored-by: Daniel A.C. Martin <daniel-ac-martin@users.noreply.github.com> * Update components/header/src/Header.tsx Co-authored-by: Daniel A.C. Martin <daniel-ac-martin@users.noreply.github.com> * Update components/header/src/Header.tsx Co-authored-by: Daniel A.C. Martin <daniel-ac-martin@users.noreply.github.com> * Update components/header/src/Header.tsx Co-authored-by: Daniel A.C. Martin <daniel-ac-martin@users.noreply.github.com> --------- Co-authored-by: Joey Connor <joey.connor@engineering.digital.dwp.gov.uk> Co-authored-by: Daniel A.C. Martin <daniel-ac-martin@users.noreply.github.com>
- Loading branch information
1 parent
063f5a6
commit 8488edf
Showing
3 changed files
with
131 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8488edf
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.
🎉 Published on https://not-gov.uk as production
🚀 Deployed on https://679fa892c52595080d80baf8--notgovuk.netlify.app