From 62b1d661d008e56af1c7418ffcf28dbb667285b3 Mon Sep 17 00:00:00 2001 From: Eitan Elbaz Date: Tue, 27 Jun 2023 16:37:30 +0100 Subject: [PATCH] added dot hover border + changed dot border colour to dot border --- src/styles.ts | 6 ++++-- src/types.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/styles.ts b/src/styles.ts index 8af4d17..b6ce7f7 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -20,8 +20,9 @@ const styles = ({ animationSpeed = 0.5, primaryColor = '#f2c14e', dotBackgroundColor = 'inherit', - dotBorderColor = '#757575', + dotBorder = '1px solid #757575', dotHoverBackgroundColor = '#757575', + dotHoverBorder = '', chevronButtonColor = '#757575', chevronButtonHoverColor = '#212121', chevronButtonDisabledColor = '#e0e0e0', @@ -67,13 +68,14 @@ const styles = ({ width: '10px', height: '10px', 'background-color': dotBackgroundColor, - border: `1px solid ${dotBorderColor}`, + border: dotBorder, 'border-radius': '50%', 'margin-right': '7px', overflow: 'hidden', }, ':hover div': { 'background-color': dotHoverBackgroundColor, + border: dotHoverBorder, }, '-selected': { ' div': { diff --git a/src/types.ts b/src/types.ts index bbc4162..7ceedad 100644 --- a/src/types.ts +++ b/src/types.ts @@ -29,8 +29,9 @@ export type ReactGrandTourStylingOverrides = { animationSpeed?: number; dotBackgroundColor?: string; - dotBorderColor?: string; + dotBorder?: string; dotHoverBackgroundColor?: string; + dotHoverBorder?: string; chevronButtonColor?: string; chevronButtonHoverColor?: string;