-
Notifications
You must be signed in to change notification settings - Fork 7
fix(tabs, tab-group): design updates to tab overflow buttons #335
Conversation
🦋 Changeset detectedLatest commit: b50cea3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
47aafec
to
c17a150
Compare
The browser log message |
This is a weird one. It appears to be casually unrelated to similar issues we've seen. I compared Tab Group to other components that use If you look at the stack trace (first screenshot), you can see that What's weird is, if you put a breakpoint on None of that answers the question of why the "unhandledrejection" handler is called. My guess is that the state change in Probably the best we can do is stub |
|
whoa, interesting.
Dang. Nothing to add here. But thanks for doing this and digging in! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
src/tab.group.ts
Outdated
// Scroll to within 1px (rounding). | ||
const roundingDelta = 1; | ||
// Scroll to within 1px. | ||
const delta = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the delta
here always be the same as line 449? Or is it possible those two can be different?
If they can be the same, you could add const scrollDelta = 1;
to the top of the file, add a comment about how it's used, and then update the two locations currently using it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Thank you @clintcs for looking into the above issue! |
Updates
glide-core-tab-group
to align with new design changes relating to overflow button behavior and styling.Overflow buttons are now disabled when there is no overflow in their direction. Previously they disappeared.
Storybook: https://glide-core.crowdstrike-ux.workers.dev/tabs-overflow-update?path=/docs/tabs--overview
Before (without overflow buttons):

After (without overflow buttons):

Before (with overflow buttons):
Screen.Recording.2024-08-29.at.4.02.42.PM.mov
After (with overflow buttons):
Screen.Recording.2024-08-29.at.4.04.20.PM.mov