-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: [AEA-5081] - new header branch #1605
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
Conversation
|
This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket: AEA-5081 |
…-5081-latest-header �Please enter a commit message to explain why this merge is necessary,
| data-testid="eps-card" | ||
| className="nhsuk-card nhsuk-card--primary nhsuk-u-margin-bottom-4" | ||
| tabIndex={0} | ||
| onKeyDown={(e) => { |
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.
You might want to break this function out of the jsx just to make it a little easier to read
| useEffect(() => { | ||
| const isMobile = window.innerWidth <= 900 | ||
| if (isMobile) { | ||
| const timer = setTimeout(() => { |
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.
whats the purpose of the sleep? is there a reason why you cant immediately resize?
|



Summary
https://nhsd-jira.digital.nhs.uk/browse/AEA-5081
https://nhsd-jira.digital.nhs.uk/browse/AEA-5338
Details
implemented the new header from NCRS.
had to utilise their 'double tap' logic to get it to work on mobile view.