Skip to content

fixed summary card title wrap issue#6638

Open
moshaid wants to merge 1 commit into
alphagov:mainfrom
moshaid:fix/summary-card-title-wrap-issue-6513
Open

fixed summary card title wrap issue#6638
moshaid wants to merge 1 commit into
alphagov:mainfrom
moshaid:fix/summary-card-title-wrap-issue-6513

Conversation

@moshaid
Copy link
Copy Markdown

@moshaid moshaid commented Jan 20, 2026

Description of the task

This PR fixes an issue #6513 where the govuk-!-text-break-word utility class doesn't work with summary card titles when text contains long strings without spaces.

Solution

  • Added word-wrap: break-word and overflow-wrap: break-word to .govuk-summary-card__title for automatic wrapping of unbreakable text
  • Added min-width: 0 to .govuk-summary-card__title within the tablet media query to allow flex items to shrink and enable text wrapping

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.

1 participant