Skip to content

Commit

Permalink
Fix attachment metadata styling issue
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinJJones committed Jul 18, 2023
1 parent 1b3f409 commit e710277
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey", $legacy: "grey-3");
&:last-of-type {
margin-bottom: 0;
}

.gem-c-attachment__attribute {
// From the Design System
// Automatic wrapping for unbreakable text (e.g. URLs)
word-wrap: break-word; // Fallback for older browsers only
overflow-wrap: break-word;
}
}

.gem-c-attachment__metadata--compact {
Expand Down

0 comments on commit e710277

Please sign in to comment.