-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat: Improve breadcrumb group responsivness #3025
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3025 +/- ##
==========================================
+ Coverage 96.35% 96.36% +0.01%
==========================================
Files 779 781 +2
Lines 21925 21935 +10
Branches 7112 7521 +409
==========================================
+ Hits 21125 21138 +13
+ Misses 793 790 -3
Partials 7 7 ☔ View full report in Codecov by Sentry. |
ad8c697
to
6bb0874
Compare
ad465e9
to
ef8aed8
Compare
776ad89
to
3a0fa8f
Compare
src/button-dropdown/interfaces.ts
Outdated
@@ -258,6 +258,7 @@ export interface ItemProps { | |||
|
|||
export interface InternalItem extends ButtonDropdownProps.Item { | |||
badge?: boolean; | |||
isCurrentPage?: boolean; |
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.
nit: I think it worths adding a doc comment to the new isCurrentPage and fullWidth to explain the purpose.
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.
update: is isCurrentPage used? I think it was replaced by the isCurrentBreadcrumb, right?
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.
good catch! took the opportunity to deduplicate these interfaces a bit too
// SPDX-License-Identifier: Apache-2.0 | ||
import clsx from 'clsx'; | ||
|
||
export const spinWhenOpen = (styles: Record<string, string>, className: string, open: boolean) => |
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 👍
7736f1c
to
88759d0
Compare
Description
Improves breadcrumb group responsiveness so that:
Related links, issue #, if available: 3SICARmRNK32
How has this been tested?
Updated unit and integ tests
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.