-
Notifications
You must be signed in to change notification settings - Fork 3
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
TD-3355 - Fixes Clear button on Variant select when deselecting #1033
TD-3355 - Fixes Clear button on Variant select when deselecting #1033
Conversation
@@ -223,7 +223,10 @@ function VehicleSelector({ | |||
} | |||
}} | |||
size={size} | |||
value={selectedVariants} | |||
// if array is empty set to null to avoid rendereing the clear button |
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.
spelling and punctuation suggestion
// if array is empty set to null to avoid rendereing the clear button | |
// if array is empty, set value to null to avoid rendering the clear button |
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.
A nit picky comment suggestion to fix a comment. Other than that the functionality is good.
I think you'll need to write some more tests to increase the line coverage of Vehicle Selector. I have received this comment from Matt on a virto-utils PR of mine. I assume the same logic applies to RUI
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!
* bug/TD-3284 nowrap typography truncation ellipsis color issue * updated request changes by approaching computed style * Upadted TruncatedTooltip.tsx * Updated changes requested * updated comment line for adjacent code * Update stories to show how to correctly use Link with this component * Undo change of sx order * Deleted NoWrapTypography * Replaced NoWrapTypography with TruncatedTooltip * Update LabeSelector.jsx * Replace NoWrapTypography with TruncatedTooltip * updated changes requested * Updated changes requested * Restore NoWrapTypography * Undo change to grid import * TD-3355 - Fixes Clear button on Variant select when deselecting (#1033) * Fixes Clear button on Variant select when deselecting * Add test to test clear button * Bumped the test coverage for this file up slightly * TD-3284 Truncated Tooltip (#1034) * Manually bring in all changes from #1032 * 10.4.1-1 * 10.4.1-2 --------- Co-authored-by: ShushN <sushmitha.a@ipg-automotive.com> Co-authored-by: Matthew Corner <matt.corner@ipg-automotive.com> Co-authored-by: stevenmcsorleyipg <steven.mcsorley@ipg-automotive.uk>
Close TD-3355
Changes
Removes the X close button when the variant select is cleared, it was only happening on the variant select
Adding UX @Sowbhagya-ipg
Dependencies
n/a
UI/UX
before
After
Testing notes
Author checklist
Before I request a review:
- [ ] I have tested the changes in Docker / a deploy-preview.- [ ] I have included appropriate tests.- [ ] I have populated the deploy-preview with relevant test data.