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 attachment metadata styling issue #3501

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

MartinJJones
Copy link
Contributor

@MartinJJones MartinJJones commented Jul 17, 2023

What

Fixes a styling issue where long strings of text for external links do not wrap onto a new line.

The approach used to fix the issue is the same as that used in the Design System - https://github.com/alphagov/govuk-frontend/blob/49a3eb389eec89e004873ddfeb8c1f9aa1d572e4/packages/govuk-frontend/src/govuk/components/summary-list/_index.scss#L64-L68

Why

The long string of text was not contained and overlapped with other elements on the page.

Further info

Tested in the browsers below using BrowserStack:

  • Chrome
  • FireFox
  • Safari
  • Safari iOS
  • IE11

The issue still exists in IE11, but it is worth noting that this issue existed before the recent change to use the attachment component from the gem.

I will create a separate issue for IE11, so this can be looked into separately.

Visual Changes

Before

before-text

Before - If the 1st link does not contain a hyphen

before-text-no-hyphen

After

after-text

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3501 July 17, 2023 16:06 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3501 July 17, 2023 16:11 Inactive
@MartinJJones MartinJJones force-pushed the fix-attachment-metadata-styling-issue branch from 8b96450 to 5334a09 Compare July 18, 2023 10:17
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3501 July 18, 2023 10:17 Inactive
Fixes a styling issue where long strings of text for external links do not wrap onto a new line, causing them to overlap with some other elements on the page.
@MartinJJones MartinJJones force-pushed the fix-attachment-metadata-styling-issue branch from 5334a09 to 5e8238d Compare July 18, 2023 10:22
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3501 July 18, 2023 10:22 Inactive
@MartinJJones MartinJJones marked this pull request as ready for review July 18, 2023 11:29
Copy link
Contributor

@maxgds maxgds left a comment

Choose a reason for hiding this comment

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

Nice.

@MartinJJones
Copy link
Contributor Author

MartinJJones commented Jul 18, 2023

Github issue created to review the attachment component further in the future, includes further info on IE11 - #3503

@MartinJJones MartinJJones merged commit 268bc60 into main Jul 18, 2023
@MartinJJones MartinJJones deleted the fix-attachment-metadata-styling-issue branch July 18, 2023 12:54
@MartinJJones MartinJJones mentioned this pull request Jul 18, 2023
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