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

AP-5608: Use moj design system interrupt #7553

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

agoldstone93
Copy link
Contributor

@agoldstone93 agoldstone93 commented Dec 24, 2024

What

Link to story

  • Add moj design system interrupt page styling and replace existing custom styling with this
  • Ensure each interrupt page has a consistent heading size, body text size, content width

Checklist

Before you ask people to review this PR:

  • Tests and rubocop should be passing: bundle exec rake
  • Github should not be reporting conflicts; you should have recently run git rebase main.
  • The standards in the Git Workflow document on Confluence should be followed
  • There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
  • The PR description should say what you changed and why, with a link to the JIRA story.
  • You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
  • You should have checked that the commit messages say why the change was made.

@agoldstone93 agoldstone93 force-pushed the ap-5608-use-moj-design-system-interrupt branch from 6b572a8 to 0a6f35c Compare December 24, 2024 13:56
@agoldstone93 agoldstone93 marked this pull request as ready for review December 24, 2024 15:28
@agoldstone93 agoldstone93 requested a review from a team as a code owner December 24, 2024 15:28
Copy link
Contributor

@colinbruce colinbruce left a comment

Choose a reason for hiding this comment

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

LGTM 👍
A couple of non-blocking observations/questions

@@ -42,4 +42,4 @@ $govuk-assets-path: "/";
@import "dropzone/src/dropzone";
@import "dropzone/src/basic";
@import "providers/summary_list_action_width";
@import "primary_navigation";
@import "primary_navigation";
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing blank line at end?

continue_button_text: t("generic.continue"),
) %>
<% end %>
<p class="govuk-body moj-interruption-card__body"><%= t(".body") %></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you checked this split with design?

<li><%= t(".use_service.sca_option") %></li>
<% end %>
</ul>
<p class="govuk-body"><%= t(".use_service.list_title") %></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't interrupt related, right? I assume you started removing maximize-text-width and found another offender?

<li><%= bullet %></li>
<% end %>
</ul>
<%= govuk_list list, type: :bullet, classes: "moj-interruption-card__body" %>
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a one-liner now there is a single impact

<%= govuk_list list, type: :bullet, classes: "moj-interruption-card__body" if local_assigns[:list] %>

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