Skip to content

Conversation

tylersticka
Copy link
Member

Overview

This PR fixes three Safari issues that were visible in different situations in the article topics listing:

  • Any u-hidden-visually elements within the list would cause Safari to increase the scrollable height of the window. This was resolved by adding position: relative to children of the list. (It was not effective to add this to the parent.)
  • Some elements would appear divided between columns. This was resolved by adding break-inside: avoid to children of the list. (page-break-inside and -webkit-column-break-inside are common suggestions, but these are older properties that didn't seem to have any more effect)
  • The bottom margin of an item could carry into the next column. This was fixed by swapping u-space-block-end-0 with u-pad-block-end-0 in the relevant templates.

Screenshots

Before

Highlighting visually divided items and extra space...

Screen Shot 2021-12-07 at 1 09 56 PM

After

Screen Shot 2021-12-07 at 1 09 18 PM

Testing

The issue was previously symptomatic in "Objects ▸ Overview ▸ Advanced" and "Prototypes ▸ Article Listing ▸ Example," so those are good stories to verify the fix in.


@changeset-bot
Copy link

changeset-bot bot commented Dec 7, 2021

🦋 Changeset detected

Latest commit: 98dbd9a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Dec 7, 2021

✔️ Deploy Preview for cloudfour-patterns ready!

🔨 Explore the source changes: 98dbd9a

🔍 Inspect the deploy log: https://app.netlify.com/sites/cloudfour-patterns/deploys/61afcf80ff08890007113d54

😎 Browse the preview: https://deploy-preview-1612--cloudfour-patterns.netlify.app

@tylersticka tylersticka marked this pull request as ready for review December 7, 2021 21:30
@tylersticka tylersticka requested a review from a team December 7, 2021 21:30
Copy link
Member

@gerardo-rodriguez gerardo-rodriguez left a comment

Choose a reason for hiding this comment

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

Wow, excellent work, @tylersticka! 🎉

@tylersticka tylersticka merged commit b4f2b74 into v-next Dec 7, 2021
@tylersticka tylersticka deleted the fix/safari-columns-height branch December 7, 2021 21:54
@github-actions github-actions bot mentioned this pull request Dec 7, 2021
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.

Large amount of white space below Overview blocks in Safari
2 participants