Skip to content

Commit

Permalink
Merge pull request #165 from EmanuelRamos115/fix/sku-selector-classname
Browse files Browse the repository at this point in the history
Fix/SKU selector classname
  • Loading branch information
ataideverton authored Jun 10, 2024
2 parents 10819df + eeafb1a commit d2443e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

0 comments on commit d2443e4

Please sign in to comment.