Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Change header icon padding #169

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/web/src/components/common/button/Button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ButtonStyleProps {
hierarchy?: ButtonHierarchy;
fontType?: FontsKey;
textColor?: ThemeColorKeyTypes;
arrowColor?: ThemeColorKeyTypes;
bgColor?: ThemeColorKeyTypes;
fullWidth?: boolean;
gap?: CSSProperties["gap"];
Expand Down Expand Up @@ -53,9 +54,9 @@ export const ButtonWrapper = styled.button<ButtonStyleProps>`
return;
}};
& .arrow-icon path {
fill: ${({ theme, textColor, hierarchy }) => {
fill: ${({ theme, arrowColor, hierarchy }) => {
if (hierarchy === ButtonHierarchy.Primary) return theme.color.text09;
return theme.color[textColor ?? "text10"];
return theme.color[arrowColor ?? "text10"];
}};
}
}
Expand All @@ -68,9 +69,9 @@ export const ButtonWrapper = styled.button<ButtonStyleProps>`
}

& .arrow-icon path {
fill: ${({ theme, textColor, hierarchy }) => {
fill: ${({ theme, arrowColor, hierarchy }) => {
if (hierarchy === ButtonHierarchy.Primary) return theme.color.text09;
return theme.color[textColor ?? "text18"];
return theme.color[arrowColor ?? "text18"];
}};
}
`;
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/components/common/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const Button = ({
{...style}
fontType={style.fontType}
textColor={style.textColor}
arrowColor={style.arrowColor}
>
{text}
</StyledText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const AlertButton = styled.button`
${mixins.flexbox("row", "center", "center")};
width: 36px;
height: 36px;
padding: 4px;
padding: 3px 4px 5px 4px;
border-radius: 4px;
transition: all 0.3s ease;
${media.tablet} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ const WalletConnectorButton = ({ isConnected }: { isConnected: boolean }) => {
hierarchy: ButtonHierarchy.Dark,
fontType: "p1",
textColor: "text19",
// width: 165,
// height: 36,
arrowColor: "text18",
padding: "10px 16px",
gap: "8px",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const TableColumn = styled.div<{ tdWidth: number }>`
.token-symbol {
margin: 0px 8px;
${fonts.p4};
color: ${({ theme }) => theme.color.text04};
}

.token-index {
Expand Down