Skip to content

Conversation

@jonathanwelch1-nhs
Copy link
Contributor

@jonathanwelch1-nhs jonathanwelch1-nhs commented Dec 15, 2025

Summary

https://nhsd-jira.digital.nhs.uk/browse/AEA-5081
https://nhsd-jira.digital.nhs.uk/browse/AEA-5338

  • Routine Change

Details

implemented the new header from NCRS.
had to utilise their 'double tap' logic to get it to work on mobile view.

@github-actions
Copy link

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-5081

data-testid="eps-card"
className="nhsuk-card nhsuk-card--primary nhsuk-u-margin-bottom-4"
tabIndex={0}
onKeyDown={(e) => {
Copy link
Contributor

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(() => {
Copy link
Contributor

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?

@sonarqubecloud
Copy link

@jonathanwelch1-nhs jonathanwelch1-nhs merged commit 937b847 into main Dec 18, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants