-
Notifications
You must be signed in to change notification settings - Fork 19
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/SKU selector classname #165
Fix/SKU selector classname #165
Conversation
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
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.
Add CHANGELOG
react/AutocompleteBlock.tsx
Outdated
@@ -341,7 +342,7 @@ const AutocompleteBlock: FunctionComponent<any & WrappedComponentProps> = ({ | |||
return ( | |||
<span | |||
key={item.itemId} | |||
className={`mr4 ${handles.skuSelection}`} | |||
className={`mr4 ${handles.skuSelection} ${item.itemId === selectedItem.value && handles.skuSelectionSelected}`} |
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.
The goal here is to just add a true
or false
to the className?
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.
Yes! Only to get when is selected
Co-authored-by: ataideverton <[email protected]>
…elRamos115/quickorder into fix/sku-selector-classname
|
What does this PR do? *
Adds a class to the selected sku to make it possible to change its color for other stores with different color palettes
How to test it? *
There is no way to test for sure, you would just use the class to change the color when necessary
Describe alternatives you've considered, if any. *
Related to / Depends on *