-
Notifications
You must be signed in to change notification settings - Fork 86
feat(breadcrumbs): align with Fusion DS #7752
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
base: master
Are you sure you want to change the base?
Conversation
edleeks87
left a comment
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.
Nice work @nuria1110, some minor suggestions from me
|
|
||
| export interface CrumbProps | ||
| extends Omit< | ||
| extends Pick< |
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.
👏
| const { isDarkBackground } = useBreadcrumbsContext(); | ||
| const { inverse } = useBreadcrumbsContext(); | ||
|
|
||
| if (rest.hasFocus && !deprecatedHasFocusWarn) { |
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.
comment: I think as these props weren't likely to have been used simply annotating the interface will be enough
| <li> | ||
| <StyledCrumb | ||
| ref={ref} | ||
| isCurrent={isCurrent} |
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.
| isCurrent={isCurrent} | |
| $isCurrent={isCurrent} |
Aligns Breadcrumbs component to Fusion DS. Updates styles using fusion-tokens and adds new `inverse` prop. Deprecates `isDarkBackground` prop from Breadcrumbs and `hasFocus`, `underline`, `linkSize` and `bold` props from Crumb.
2aeced5 to
2c01f88
Compare
2c01f88 to
43ba2f4
Compare
Proposed behaviour
Aligns
Breadcrumbscomponent to Fusion DS.:inverseprop.isDarkBackgroundprop from Breadcrumbs.hasFocus,underline,linkSizeandboldprops from Crumb.Current behaviour
Breadcrumbscomponent is not aligned with Fusion DS.Checklist
d.tsfile added or updated if requiredQA
Additional context
There is a bug in
react-docsgen-typescriptwhere the props table will not generate in storybook when a variable is declared outside of the scope of a component exported as default, so I've had to add a named export forCrumbto fix this.Testing instructions