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

PLATUI-2644: Hide when printing for language select and report techni… #331

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

JoPintoPaul
Copy link
Contributor

…cal issue

Copy link
Contributor

@TimothyFothergill TimothyFothergill left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1,5 +1,5 @@
{% if params.language === 'en' %}
<nav class="hmrc-language-select" aria-label="Language switcher">
<nav class="hmrc-language-select govuk-!-display-none-print" aria-label="Language switcher">
Copy link
Contributor

Choose a reason for hiding this comment

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

worth adding tests for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ellamdav Could do, could do... Seems like it's just checking the static template rather than any logic, but can add if that's what we think is best?

Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like double-entry coding in a way, but that's not such a bad thing - eg. someone could refactor the template to dry it up and this might get lost, but visually would still all look OK 🤷

@JoPintoPaul JoPintoPaul merged commit ae70af4 into main Nov 20, 2023
1 check passed
@JoPintoPaul JoPintoPaul deleted the PLATUI-2644_display-none-print branch November 20, 2023 17:02
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.

None yet

3 participants