-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: #1121 breadcrumb component not routing #1169
Conversation
Hi Jota, I think there is an example in the primevue documentation https://primevue.org/breadcrumb/#router, we can follow that. So change the route item "path" to "route". Also need to change all the places that is using ".path" And update the Breadcrumb component in the |
"route" or "path" will work using the template , but it will break styling. I need to check to be sure |
using the template sintax works with "path" as the routeItems key but will break the styling. Should I make the change and focus on the styling? |
5d8086b
to
6e48a5b
Compare
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.
Looks good to me.
Just add a note here, seems like Primevue breadcrumb can get the item.url and make the link works, so we changed "path" to be "url": primefaces/primevue@ad9b437#diff-33bf4bb142b615a34557b44002c2eb3ac4393bd3fa4099aede38fabbf4e5527f |
2b73952
to
9ac5575
Compare
Hi Jota, please check the comment I put in the pr in the common repo, bcgov/nr-theme#155 (review). We don't need to add these extra custom class, let's remove them, and upgrade to the latest theme package v1.8.4. Thanks!! |
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.
Approve. Just wondering if the addition of "$light-focus" in .scss is intended or is a left over?
thanks Ian, just removed |
Quality Gate passed for 'nr-forests-access-management_admin'Issues Measures |
The breadcrumb component now receives the home as a prop, in the primevue breadcrumb component documentation has exemples using the name "
route
" for the the path but the component it self expects "item.url
". Tried using "route
" and "path
" as therouteItems
object key but it did not work, "url
" worked though.primefaces/primevue@ad9b437#diff-33bf4bb142b615a34557b44002c2eb3ac4393bd3fa4099aede38fabbf4e5527f
https://primevue.org/breadcrumb/