Skip to content

Commit fd78390

Browse files
Merge branch 'nelsonwong1012-active_dot_class'
2 parents d3f236a + 57cd118 commit fd78390

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Tour.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ class Tour extends Component {
517517
disabled={current === i || disableDotsNavigation}
518518
showNumber={showNavigationNumber}
519519
data-tour-elem="dot"
520+
className={cn(CN.dot.base, {
521+
[CN.dot.active]: current === i,
522+
})}
520523
/>
521524
))}
522525
</Navigation>
@@ -569,6 +572,10 @@ const CN = {
569572
base: 'reactour__helper',
570573
isOpen: 'reactour__helper--is-open',
571574
},
575+
dot: {
576+
base: 'reactour__dot',
577+
active: 'reactour__dot--is-active',
578+
},
572579
}
573580

574581
const setNodeState = (node, helper, position) => {

0 commit comments

Comments
 (0)