Skip to content

Commit

Permalink
Merge pull request #233 from vtex-apps/feature/active-dot
Browse files Browse the repository at this point in the history
Add new CSS handle for the active dot
  • Loading branch information
Breno Calazans authored Jul 23, 2020
2 parents 2763b5a + e003eb9 commit 8ff00da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Add new CSS handle for the active dot.

## [1.40.1] - 2020-07-22
### Changed
Expand Down
3 changes: 2 additions & 1 deletion react/components/ShelfContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const CSS_HANDLES = [
'shelfContentContainer',
'sliderContainer',
'slide',
'dot--isActive',
]
const SLIDER_WIDTH_ONE_ELEMENT = 320
const SLIDER_WIDTH_TWO_ELEMENTS = 500
Expand Down Expand Up @@ -202,7 +203,7 @@ class ShelfContent extends Component {
root: 'pt4',
notActiveDot: 'bg-muted-3',
dot: classNames(shelf.dot, 'mh2 mv0 pointer br-100'),
activeDot: 'bg-emphasis',
activeDot: `${cssHandles['dot--isActive']} bg-emphasis`,
}}
/>
</NoSSR>
Expand Down

0 comments on commit 8ff00da

Please sign in to comment.