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 file remove component #1202

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Fix file remove component #1202

merged 3 commits into from
Feb 11, 2025

Conversation

jamie-o-wilkinson
Copy link
Contributor

@jamie-o-wilkinson jamie-o-wilkinson commented Feb 11, 2025

What problem does this pull request solve?

Move the error summary of the FileRemoveComponent to the top, so that it appears above the h1 in accordance with the design system.

Remove the govuk-grid-column-two-thirds grid layout from the FileRemoveComponent view, as it was nested within another, making it too narrow.

Customise the summary list key width to 20% for the file review component, to allow for long filenames.

Trello card: https://trello.com/c/mfhj3ufe

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Has all relevant documentation been updated?

@jamie-o-wilkinson jamie-o-wilkinson self-assigned this Feb 11, 2025
@jamie-o-wilkinson jamie-o-wilkinson marked this pull request as ready for review February 11, 2025 13:20
stephencdaly
stephencdaly previously approved these changes Feb 11, 2025
Copy link
Contributor

@stephencdaly stephencdaly left a comment

Choose a reason for hiding this comment

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

All looks good and looks as expected when testing locally

Move the error summary of the FileRemoveComponent to the top, so that
it appears above the h1 in accordance with the design system.
The file remove component used the two-thirds grid layout, but the view
that contains this component already uses this so the end result was
too narrow.
Customise the summary list key width to 20% for the file review component, to allow for long filenames.
@jamie-o-wilkinson jamie-o-wilkinson force-pushed the fix-file-remove-component branch 2 times, most recently from 0112f72 to b66f449 Compare February 11, 2025 16:14
Copy link
Contributor

@stephencdaly stephencdaly left a comment

Choose a reason for hiding this comment

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

Width adjustment works as expected

@jamie-o-wilkinson jamie-o-wilkinson merged commit 98b555b into main Feb 11, 2025
4 checks passed
@jamie-o-wilkinson jamie-o-wilkinson deleted the fix-file-remove-component branch February 11, 2025 16:20
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