-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add "all activity" breadcrumb to D&D tables #5694
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
fides
|
Project |
fides
|
Branch Review |
refs/pull/5694/merge
|
Run status |
|
Run duration | 00m 46s |
Commit |
|
Committer | jpople |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
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.
@jpople The first 2 links both point to the same place now, which seems odd. Is that expected?
onPathClick(urnParts.slice(0, index + 1).join(".")); | ||
} | ||
: undefined, | ||
href: isLast ? undefined : "", |
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.
We don't actually use the href
for navigation but its presence determines whether the item has a hover state.
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.
In that case I would suggest we update NextBreadcrumb
to look for onclick
without href
and use a button
element in that instance instead of the NextLink
element, especially for accessibility concerns.
size="small" | ||
icon={modifiedItem.icon} | ||
onClick={modifiedItem.onClick} | ||
className="ant-breadcrumb-link -mt-px px-1 text-inherit" |
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.
@gilluminate Updated NextBreadcrumb as you suggested.
This top margin is ugly, but was the closest I was able to get to centering the buttons vertically so the breadcrumb items are aligned-- Ant doesn't expose much of its item rendering and they don't have classes to style with SCSS either.
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.
Great improvement. Love the accessibility support
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 48s |
Commit |
|
Committer | jpople |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes HJ-389
Description Of Changes
Adds an "all activity" breadcrumb linking to the respective root page to both detection and discovery result tables.
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works