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
Merged
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,4 +579,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- Add css handles in components parents div to manipulate styles easily.
- Add css handles in components parents div to manipulate styles easily.

### Added

- Add css handles to selected sku on AutoComplete block.
6 changes: 5 additions & 1 deletion react/AutocompleteBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ const AutocompleteBlock: FunctionComponent<any & WrappedComponentProps> = ({
'productThumb',
'productTitle',
'productSku',
'skuSelected',
'productLabel',
'inputQuantity',
'buttonAdd',
Expand Down Expand Up @@ -341,7 +342,10 @@ const AutocompleteBlock: FunctionComponent<any & WrappedComponentProps> = ({
return (
<span
key={item.itemId}
className={`mr4 ${handles.skuSelection}`}
className={`mr4 ${handles.skuSelection} ${
item.itemId === selectedItem.value &&
handles.skuSelected
}`}
>
<Tag
size="small"
Expand Down
Loading