Skip to content

Commit

Permalink
Background gradient added and hover background changed for Button.ter…
Browse files Browse the repository at this point in the history
…tiary

This was done to match the implementation with the design
  • Loading branch information
ketsappi authored and J-Kallunki committed Oct 22, 2019
1 parent aadadf3 commit bc86e31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/Button/Button.baseStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ const secondaryNoBorderStyles = ({ theme }: SuomifiThemeProp) => css`
const tertiaryStyles = ({ theme }: SuomifiThemeProp) => css`
&.fi-button--tertiary {
${secondary({ theme })}
background: ${theme.colors.highlightLight50};
background: ${theme.gradients.highlightLight45ToHighlightLight50};
border: none;
&:hover {
background: ${theme.colors.highlightLight53};
background: ${theme.colors.highlightLight50};
}
&:active {
Expand Down
4 changes: 2 additions & 2 deletions src/core/Button/__snapshots__/Button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ exports[`calling render with the same component on the same container does not r
background-color: hsl(0,0%,100%);
border: 1px solid hsl(212,63%,45%);
text-shadow: none;
background: hsl(212,63%,95%);
background: linear-gradient(0deg,hsl(212,63%,90%),hsl(212,63%,95%));
border: none;
}
Expand All @@ -232,7 +232,7 @@ exports[`calling render with the same component on the same container does not r
}
.c0.fi-button--tertiary:hover {
background: hsl(212,63%,98%);
background: hsl(212,63%,95%);
}
.c0.fi-button--tertiary:active {
Expand Down
3 changes: 3 additions & 0 deletions src/core/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export const gradients = {
depthLight26: `linear-gradient(0deg, ${colors.depthLight26} 0%, ${
colors.whiteBase
} 100%)`,
highlightLight45ToHighlightLight50: `linear-gradient(0deg, ${
colors.highlightLight45
}, ${colors.highlightLight50})`,
};

export const outlines = {
Expand Down

0 comments on commit bc86e31

Please sign in to comment.