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

Add text-wrap: pretty to _base_typography.scss #5090

Merged
merged 3 commits into from
May 21, 2024

Conversation

pastelcyborg
Copy link
Contributor

@pastelcyborg pastelcyborg commented May 16, 2024

Done

  • Added text-wrap: pretty to _base_typography.scss in order to prevent text widows on browsers that support the pretty value.

  • Open demo

  • QA: Examine text elements across documentation site and see that no text widows should exist

Check if PR is ready for release

If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:

  • PR should have one of the following labels to automatically categorise it in release notes:
    • Feature 🎁, Breaking Change 💣, Bug 🐛, Documentation 📝, Maintenance 🔨.
  • Vanilla version in package.json should be updated relative to the most recent release, following semver convention:
    • if CSS class names are not changed it can be bugfix release (x.x.X)
    • if CSS class names are changed/added/removed it should be minor version (x.X.0)
    • see the wiki for more details
  • Any changes to component class names (new patterns, variants, removed or added features) should be listed on the what's new page.

Screenshots

See below comments for any edge case scenario screenshots.

@pastelcyborg pastelcyborg added the Feature 🎁 New feature or request label May 16, 2024
@webteam-app
Copy link

Copy link
Member

@bartaz bartaz left a comment

Choose a reason for hiding this comment

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

Small suggestion on the changelog notes, but otherwise looks good.

releases.yml Outdated Show resolved Hide resolved
@bartaz
Copy link
Member

bartaz commented May 16, 2024

@pastelcyborg
Copy link
Contributor Author

@bartaz What are your thoughts on those two cases? Do they concern you?

I'm not sure I understand the second example you linked - that appears as expected behavior, to me. Can you explain?

Co-authored-by: Bartek Szopka <83575+bartaz@users.noreply.github.com>
@lyubomir-popov
Copy link
Contributor

I think the date issue is the riskier one. The wrapping is not a major concern (since we've already embarked on simplifying things and sacrificing some control in the process). It should be fairly easy to recover from the date issue, e.g. with a &nbsp;.

@bartaz bartaz marked this pull request as ready for review May 21, 2024 10:13
@bartaz bartaz added Review: QA +1 Review: Percy +1 and removed Review: QA needed Review: Percy needed This PR needs a review of Percy for visual regressions labels May 21, 2024
@bartaz bartaz merged commit 37dbe03 into canonical:main May 21, 2024
5 checks passed
@pastelcyborg pastelcyborg deleted the add-text-wrap-pretty branch June 13, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants