-
Notifications
You must be signed in to change notification settings - Fork 179
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(protocol-designer, component): fixes RadioButton and update path tooltip #16635
Conversation
…com/Opentrons/opentrons into protocol_designer-path-double-click
1f259f7
to
0f513ca
Compare
…com/Opentrons/opentrons into protocol_designer-path-double-click
css={ | ||
isSelected | ||
? SELECTED_BUTTON_STYLE | ||
: disabled | ||
? DISABLED_BUTTON_STYLE | ||
: AVAILABLE_BUTTON_STYLE | ||
} |
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 avoid using a nested ternary operator
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.
oh i'll create a helper function to handle this
disabled: boolean | ||
largeDesktopBorderRadius: boolean | ||
isLarge: boolean | ||
maxLines?: number | null |
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.
need to support null
?
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'm not sure. does setting it to null means it has no line limit? but it's an optional prop
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.
protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields/PathField.tsx
Outdated
Show resolved
Hide resolved
protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields/PathField.tsx
Outdated
Show resolved
Hide resolved
protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields/PathField.tsx
Outdated
Show resolved
Hide resolved
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
I left one comment.
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! nice work!
fix RQA-3270, re AUTH-862
Overview
Updating the
RadioButton
component to fix the "double-clicking" behavior when quickly clicking through different paths in the Transfer step. Also updating the GIF images for path animation.Test Plan and Hands on Testing
Changelog
styled
components outside theRadioButton
component to prevent them from being created dynamicallyReview requests
Risk assessment