Skip to content
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

Merged

Conversation

EmanuelRamos115
Copy link
Contributor

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 *

Copy link

vtex-io-ci-cd bot commented May 29, 2024

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:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

Copy link
Contributor

@ataideverton ataideverton left a 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 Show resolved Hide resolved
@@ -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}`}
Copy link
Contributor

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?

Copy link
Contributor Author

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

@EmanuelRamos115
Copy link
Contributor Author

EmanuelRamos115 commented Jun 6, 2024

Add CHANGELOG
Done!

ataideverton
ataideverton previously approved these changes Jun 10, 2024
Copy link

github-actions bot commented Jun 10, 2024

Messages
📖 ❤️ Thanks!
📖

🎉 PR additions = 10, PR deletions = 2

Generated by 🚫 dangerJS against eeafb1a

@ataideverton ataideverton merged commit d2443e4 into vtex-apps:master Jun 10, 2024
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants