Skip to content

Commit

Permalink
fix: btn color theme (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnsinri authored Oct 27, 2024
1 parent 852ee14 commit b5bb7d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/displayHistoryButton/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export const Button = styled.button<{ state: boolean }>`
state
? theme.displayHistoryButton.iconActive
: theme.displayHistoryButton.icon};
${({ state }) =>
${({ state, theme }) =>
state &&
css`
box-shadow:
inset 3px 3px 5px #bbbbbb,
inset -3px -3px 5px #ffffff;
inset 3px 3px 5px ${theme.displayHistoryButton.shadow[0]},
inset -3px -3px 5px ${theme.displayHistoryButton.shadow[1]};
`}
&:hover {
Expand Down
1 change: 0 additions & 1 deletion src/components/mainContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const MainContainer: FC = () => {
const resize = () => {
const style = window.getComputedStyle(ref);
const width = getPixel(style, "width") - 40;
console.log("onResize", width);
setGridProperties(
calcGridProperties(width, cardWidth, { gapRange: [x, x * 4] }),
);
Expand Down
1 change: 1 addition & 0 deletions src/configs/theme/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ export const darkTheme: DefaultTheme = {
normal: "transparent",
hover: colors.grey[700],
},
shadow: [colors.grey[900], colors.grey[800]],
},
};
1 change: 1 addition & 0 deletions src/configs/theme/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ export const lightTheme: DefaultTheme = {
normal: "transparent",
hover: colors.grey[200],
},
shadow: [colors.grey[400], colors.grey[100]],
},
};
1 change: 1 addition & 0 deletions types/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type DropdownTheme = {

export type DisplayHistoryButtonTheme = ButtonTheme & {
iconActive: string;
shadow: [string, string];
};

declare module "styled-components" {
Expand Down

0 comments on commit b5bb7d0

Please sign in to comment.