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

fix(tabs): allow scrolling the panel contents #761

Merged
merged 2 commits into from
May 28, 2024

Conversation

michael-iden
Copy link
Contributor

@michael-iden michael-iden commented May 28, 2024

This change: (check at least one)

  • Adds a new feature
  • Fixes a bug
  • Improves maintainability
  • Improves documentation
  • Is a release activity

Is this a breaking change? (check one)

  • Yes
  • No

Is the: (complete all)

  • Title of this pull request clear, concise, and indicative of the issue number it addresses, if any?
  • Test suite(s) passing?
  • Code coverage maximal?
  • Changeset added?
  • Component status page up to date?

What does this change address?
This allows the tabs panel contents to scroll if there is a height defined on the parent element in the DOM

How does this change work?
Give the height: 100% so the browser can compute overflow behavior where applicable

Here is a video where I apply the fix to a few different contexts we use tabs to show it fixes the old behavior we had in pharos 13 without affecting the new behavior we added in pharos 14 release
https://github.com/ithaka/pharos/assets/13315416/acb679a9-6d06-4c53-a49c-78576c69788a

Additional context
Closes #760

@michael-iden michael-iden requested a review from a team as a code owner May 28, 2024 15:12
@michael-iden michael-iden requested review from sirrah-tam, jialin-he and mtorres3 and removed request for a team May 28, 2024 15:12
Copy link

changeset-bot bot commented May 28, 2024

🦋 Changeset detected

Latest commit: d60bf97

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

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

github-actions bot commented May 28, 2024

size-limit report 📦

Path Size
packages/pharos/lib/index.js 64.48 KB (-0.03% 🔽)

@michael-iden michael-iden merged commit 4e8fcde into develop May 28, 2024
7 checks passed
@michael-iden michael-iden deleted the bugfix/tab-panel-scrolling branch May 28, 2024 15:38
@github-actions github-actions bot mentioned this pull request May 28, 2024
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.

Tabs: Regression in scrolling behavior when updating to version 14
3 participants