Skip to content

Commit

Permalink
added dot hover border + changed dot border colour to dot border
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Elbaz committed Jun 27, 2023
1 parent f5a41f7 commit 62b1d66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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': {
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export type ReactGrandTourStylingOverrides = {
animationSpeed?: number;

dotBackgroundColor?: string;
dotBorderColor?: string;
dotBorder?: string;
dotHoverBackgroundColor?: string;
dotHoverBorder?: string;

chevronButtonColor?: string;
chevronButtonHoverColor?: string;
Expand Down

0 comments on commit 62b1d66

Please sign in to comment.