Skip to content

Commit

Permalink
feat(palette): replace component colors with updated palette
Browse files Browse the repository at this point in the history
  • Loading branch information
Christos-Zacharopoulos committed Sep 23, 2020
1 parent bc1351f commit e0a24c1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu/Menu.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const optionsStyle = ({ menuPosition }: MenuOptions) => (theme: Theme) =>
right 0;
width: ${rem(148)};
height: auto;
background-color: #fff;
background-color: ${theme.palette.white};
box-shadow: 0px 0px ${rem(16)} grey;
display: flex;
flex-direction: column;
Expand All @@ -102,6 +102,6 @@ export const optionsStyle = ({ menuPosition }: MenuOptions) => (theme: Theme) =>
}
& > button:hover {
background-color: ${darken(0.05, '#fff')};
background-color: ${darken(0.05, theme.palette.white)};
}
`;
2 changes: 1 addition & 1 deletion src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Menu: React.FC<Props & TestProps & EventProps> = props => {
items.map((option, index) => (
<button
css={{
backgroundColor: '#fff',
backgroundColor: theme.palette.white,
border: 0,
}}
key={`${option}-${index}`}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Select: React.FC<Props> = ({
const customStyles: Styles = {
option: (provided, state) => ({
...provided,
backgroundColor: state.isSelected ? '#ededed' : '#ffffff',
backgroundColor: state.isSelected ? '#ededed' : theme.palette.white,
color: state.isDisabled ? theme.palette.flat.lightGray[700] : theme.palette.text.primary[400],
padding: rem(16),
'&:hover': {
Expand Down Expand Up @@ -142,7 +142,7 @@ const Select: React.FC<Props> = ({
backgroundColor: '#cecece',
},
svg: {
fill: '#fff',
fill: theme.palette.white,
backgroundColor: 'transparent',
},
},
Expand Down
30 changes: 15 additions & 15 deletions src/components/Table/__snapshots__/Table.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-1o8230t-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -450,25 +450,25 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-1nbzf55-Table"
>
<th
className="css-a3pxss-TableCell"
className="css-1vjr0s9-TableCell"
/>
<th
className="css-1r1qkc1-TableCell"
className="css-1xy1ycd-TableCell"
>
Title
</th>
<th
className="css-1r1qkc1-TableCell"
className="css-1xy1ycd-TableCell"
>
Name
</th>
<th
className="css-1r1qkc1-TableCell"
className="css-1xy1ycd-TableCell"
>
Surname
</th>
<th
className="css-1w04xju-TableCell"
className="css-1keazcd-TableCell"
>
Age
</th>
Expand All @@ -479,7 +479,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -542,7 +542,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -605,7 +605,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -668,7 +668,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -731,7 +731,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -794,7 +794,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -857,7 +857,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -920,7 +920,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down Expand Up @@ -983,7 +983,7 @@ exports[`Storyshots Design System/Table Fixed Header Table 1`] = `
className="css-8z679-TableRow"
>
<th
className="css-sycyqs-TableCell"
className="css-sxuvld-TableCell"
>
<span
className="css-u4dw6y-CheckBox"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/components/TableCell/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const TableCell: React.FC<Props> = ({
left: 0,
zIndex: 2,
position: 'sticky',
background: '#fff',
background: theme.palette.white,
},
type === 'financial' && {
borderLeft: `1px solid ${theme.palette.flat.lightGray[400]}`,
Expand Down

0 comments on commit e0a24c1

Please sign in to comment.