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
Fixes #29332 - update the breadcrumbs to pf4 #7712
Conversation
Issues: #29332 |
3a549cf
to
5e44ade
Compare
2a6a88e
to
ccda064
Compare
Thanks @MariaAga, fixed |
Thanks @sharvit ! 👍 looks like pf4 uses a different font and much smaller size, still looks great. |
Actually it's the same font but the sizes are meant to use with a different font, It would look much better (font, sizing, icon) once #7519 would merge. See: https://user-images.githubusercontent.com/1262502/76521884-5694e480-646e-11ea-8e62-87b8e02a421e.png I'm wondering if I should put some patch until #7519 will get in... |
ccda064
to
b18276d
Compare
<Breadcrumb | ||
title={false} | ||
> | ||
<Component> |
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.
is this expected?
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.
Based on https://enzymejs.github.io/enzyme/docs/api/ReactWrapper/name.html
The order of precedence on returning the name is:
type.displayName
->type.name
->type
.
I assume that PF4 compiled it into an anonymous function and didn't set a displayName
or name
.
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.
Should we set the displayName
manually?
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.
I don’t think we should as it's a 3rd party component, as far as we keep our snapshots short, we should be fine.
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.
PF4 fixed the issue with the display name: patternfly/patternfly-react#4391
This PR in foreman-js should fix that issue: theforeman/foreman-js#146
b18276d
to
3ade747
Compare
Rebased, snapshots should be back to normal after pf4 fixed the display-name issue. |
Works for me |
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.
No description provided.