-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Breadcrumb collapse #6892
Breadcrumb collapse #6892
Conversation
# Conflicts: # packages/@react-spectrum/s2/src/Breadcrumbs.tsx # packages/@react-spectrum/s2/src/TagGroup.tsx
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.
Behavior looks good to me, just a couple of questions
<HiddenBreadcrumbs items={children} size={size} listRef={listRef} /> | ||
{visibleItems < collection.size ? ( | ||
<> | ||
{children[0].render?.(children[0])} |
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.
Do we want to keep the showRoot
option from v3?
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.
following up with spectrum
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.
One more thing I noticed
{visibleItems < collection.size ? ( | ||
<> | ||
{children[0].render?.(children[0])} | ||
<BreadcrumbMenu items={children.slice(1, sliceIndex)} onAction={onAction} /> |
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.
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.
fixed, see storybook from ac304c9 where i temporarily added some new stories to hit the edge cases
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.
LGTM, verified the link out arrows aren't there anymore in the stories, breadcrumb text and chevron disabled color and the 2 breadcrumb item case
Co-authored-by: Reid Barber <reid@reidbarber.com>
## API Changes
react-aria-components/react-aria-components:BreadcrumbRenderProps BreadcrumbRenderProps {
isCurrent: boolean
+ isDisabled: boolean
} |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: