Skip to content

Make Dialog footer scrollable on very short viewports #5629

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

Merged
merged 17 commits into from
Mar 28, 2025

Conversation

hectahertz
Copy link
Contributor

Part of the work to improve reflow of the component. This helps to make all the footer buttons accessible on small screens and gives some extra breathing room to the body.

Changelog

Changed

Dialog footer becomes scrollable on very short viewports.

Before

Screen.Recording.2025-01-30.at.20.46.28.mov

After

Screen.Recording.2025-01-30.at.20.46.08.mov

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

The CSS changes seem a bit esoteric, but are due to overflow: scroll not being compatible with justify-content: flex-end. flex-direction: row-reverse; flex-wrap: wrap-reverse; plus reversing the items is visually equivalent but compatible. The focus order keeps being the same.

Merge checklist

@hectahertz hectahertz requested a review from a team as a code owner January 30, 2025 19:52
@hectahertz hectahertz requested a review from joshblack January 30, 2025 19:52
Copy link

changeset-bot bot commented Jan 30, 2025

🦋 Changeset detected

Latest commit: 84c7ac5

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Jan 30, 2025
Copy link
Contributor

github-actions bot commented Jan 30, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 105.35 KB (-0.02% 🔽)
packages/react/dist/browser.umd.js 105.69 KB (-0.09% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-5629 February 7, 2025 12:50 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5629 February 7, 2025 18:53 Inactive
@primer primer bot requested a review from a team as a code owner February 7, 2025 22:02
@primer primer bot requested a review from emilybrick February 7, 2025 22:02
@primer primer bot temporarily deployed to github-pages February 7, 2025 22:15 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5629 February 7, 2025 22:15 Inactive
Copy link
Member

@TylerJDev TylerJDev left a comment

Choose a reason for hiding this comment

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

Left a few more comments, curious on what you think! Looks almost good to go 🚀

@lesliecdubs
Copy link
Member

Ping @hectahertz, would be awesome to get this one over the line before you fully switch focus to the next epic 🙇🏻‍♀️

@hectahertz hectahertz force-pushed the hectahertz/dialog-footer-wrapping branch from c0bee5e to e62c9a9 Compare March 20, 2025 18:10
@hectahertz hectahertz force-pushed the hectahertz/dialog-footer-wrapping branch from e62c9a9 to 9e64451 Compare March 20, 2025 18:12
@github-actions github-actions bot requested a deployment to storybook-preview-5629 March 24, 2025 16:26 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-5629 March 24, 2025 16:46 Inactive
@hectahertz hectahertz enabled auto-merge March 28, 2025 17:59
@github-actions github-actions bot requested a deployment to storybook-preview-5629 March 28, 2025 18:03 Abandoned
@github-actions github-actions bot requested a deployment to storybook-preview-5629 March 28, 2025 18:14 Abandoned
@hectahertz hectahertz added this pull request to the merge queue Mar 28, 2025
Merged via the queue into main with commit b7346b2 Mar 28, 2025
44 checks passed
@hectahertz hectahertz deleted the hectahertz/dialog-footer-wrapping branch March 28, 2025 18:36
@primer primer bot mentioned this pull request Mar 28, 2025
francinelucca added a commit that referenced this pull request Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants