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

Fix: service manual mobile/tablet alignment #3295

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

CodeSonia
Copy link
Contributor

@CodeSonia CodeSonia commented Aug 8, 2024

What

Trello card

This PR addresses alignment issues in the service manual pages across mobile and tablet views which was identified in this GitHub issue: #3250

Changes made:

  • Removed govuk-width-container div from service_manual_topic.html.erb: This change fixes the alignment issue of the content of the page.
  • Removed govuk-width-container div from application.html.erb: this adjustment ensures proper alignment of the phase banner with the content in various views.

Additional Updates:

  • Improved service_manual_phase_label test: enhanced the test to handle case sensitivity for the "Alpha" phase label, ensuring Capybara correctly identifies the label regardless of its case. This resolves the previous test error where it said it found an instance it was found 1 time using a case insensitive search and it was found 1 time including non-visible text.).

Screenshots:

Service manual page: https://www.gov.uk/service-manual/helping-people-to-use-your-service

Desktop

No change.

Tablet:

Before After
image image

Mobile:

Before After
image image

I noticed this PR #2988 which also looked at fixing the spacing of the phase banner in HMRC internal manuals. The below shows this is not affected:

HMRC internal manual: https://www.gov.uk/hmrc-internal-manuals/air-passenger-duty/updates

Desktop

No change

Tablet (no change but to show it too)

Before After
image image

Mobile (no change but to show it too:

Before After
image image

- Removed "govuk-width-container" divs from service_manual_topic and application.html.erb as they were causing alignment issues on mobile and tablet views. This adjustment ensures that content sections are displayed correctly across different devices.

- Improved the service manual_phase_label test to handle case sensitivity for "Alpha". Updated the test to ensure Capybara correctly identifies the phase label regardless of case, resolving the previous error.
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3295 August 8, 2024 15:23 Inactive
Copy link
Contributor

@MartinJJones MartinJJones left a comment

Choose a reason for hiding this comment

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

Awesome work and PR description 👍

@MartinJJones
Copy link
Contributor

Fixes: #3250

@MartinJJones MartinJJones reopened this Aug 9, 2024
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3295 August 9, 2024 08:52 Inactive
@MartinJJones MartinJJones merged commit b8759f9 into main Aug 9, 2024
21 checks passed
@MartinJJones MartinJJones deleted the fix-service-manual-alignment branch August 9, 2024 08:58
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.

3 participants