-
Notifications
You must be signed in to change notification settings - Fork 13
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 sizing of breadcrumbs to make breadcrumbs size appropriate #189
base: main
Are you sure you want to change the base?
Conversation
11d8928
to
1d9dc96
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.
Do you think this is an opportunity to actually switch to the RSP v3 Breadcrumbs
component? It's a little bit cumbersome having to deal with SVG paths and stuff, I think.
@solimant I think this is a great idea! Will update the PR accordingly |
</ul> | ||
</nav> | ||
) | ||
const ParliamentBreadcrumbs = ({ breadcrumbsPages, ...props }) => { |
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.
Now that we've moved to using v3 Breadcrumbs, I'm not sure if having this component here is providing any value. I think we should deprecate it:
const ParliamentBreadcrumbs = ({ breadcrumbsPages, ...props }) => { | |
/** | |
* Parliament Breadcrumbs are deprecated. Please use the React Spectrum v3 Breadcrumbs instead. | |
* See the docs for details: https://react-spectrum.adobe.com/react-spectrum/Breadcrumbs.html. | |
* | |
* @deprecated | |
*/ | |
const ParliamentBreadcrumbs = ({ breadcrumbsPages, ...props }) => { | |
console.warn('Parliament Breadcrumbs are deprecated. Please use the React Spectrum v3 Breadcrumbs instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/Breadcrumbs.html'); | |
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 suggestion!
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.
TY AC!
Description
Spectrum-CSS uses an alias value that is undetected by Parliament UI library, which causes no
height
andwidth
to be set for the chevron icons. This change enforces the chevrons to be a certain height and width.Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Before
After
Types of changes
Checklist: