-
Notifications
You must be signed in to change notification settings - Fork 193
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
Use transient props for all styled components #3049
Conversation
This removes the `disabled` prop from the `Dropdown` component. This is already included in the default HTML props of the `select` component, so it's not necessary to add it again.
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.
Changes to transient props look good, though possibly with one unintended change.
@@ -68,7 +68,7 @@ export const VariantAnalysisRepositoriesStats = ({ | |||
if (variantAnalysisStatus === VariantAnalysisStatus.Failed) { | |||
return ( | |||
<> | |||
0<HorizontalSpace size={2} /> |
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.
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 think you're right. This just looked like an accidental typo, but I didn't actually check whether that was the case.
In this case, I would have expected something like 0 <ErrorIcon label="Variant analysis failed" />
rather than a separate element for the spacing.
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.
LGTM!
This switches all styled components I could find with custom props to using transient props. It's easiest to review this commit-by-commit; each commit changes 1 component.
Checklist
ready-for-doc-review
label there.