diff --git a/packages/berlin/src/components/dots/Dots.styled.tsx b/packages/berlin/src/components/dots/Dots.styled.tsx index b69a4690..10df935b 100644 --- a/packages/berlin/src/components/dots/Dots.styled.tsx +++ b/packages/berlin/src/components/dots/Dots.styled.tsx @@ -7,7 +7,12 @@ type DotProps = { export const Dot = styled.div` background-color: ${(props) => (props.$active ? 'var(--color-black)' : 'var(--color-gray)')}; border-radius: 50%; + cursor: pointer; height: 0.5rem; transition: 0.2s ease-in; width: 0.5rem; + + &:hover { + background-color: var(--color-black); + } `; diff --git a/packages/berlin/src/components/dots/Dots.tsx b/packages/berlin/src/components/dots/Dots.tsx index 391daa27..d5bef910 100644 --- a/packages/berlin/src/components/dots/Dots.tsx +++ b/packages/berlin/src/components/dots/Dots.tsx @@ -4,13 +4,14 @@ import { Dot } from './Dots.styled'; type DotsProps = { dots: number; activeDotIndex: number; + setStep: React.Dispatch>; }; -function Dots({ dots, activeDotIndex }: DotsProps) { +function Dots({ dots, activeDotIndex, setStep }: DotsProps) { return ( {Array.from({ length: dots }).map((_, index) => ( - + setStep(index)} /> ))} ); diff --git a/packages/berlin/src/pages/Onboarding.tsx b/packages/berlin/src/pages/Onboarding.tsx index 81ed9982..94be8e6e 100644 --- a/packages/berlin/src/pages/Onboarding.tsx +++ b/packages/berlin/src/pages/Onboarding.tsx @@ -35,7 +35,7 @@ function Onboarding() { {data[step].title} - +