Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit e593343

Browse files
committed
style(link): adjust color
1 parent 49ed43a commit e593343

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/widgets/Buttons/Button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ const Button: FC<TProps> = ({
5757
return (
5858
<Wrapper
5959
ghost={ghost}
60-
onClick={() => {
61-
if (!disabled) onClick()
62-
}}
60+
onClick={() => !disabled && onClick()}
6361
size={size}
6462
className={className}
6563
space={space}
6664
noBorder={noBorder}
6765
disabled={disabled}
6866
>
69-
<ChildrenWrapper size={size}>{children}</ChildrenWrapper>
67+
<ChildrenWrapper size={size} ghost={ghost} noBorder={noBorder}>
68+
{children}
69+
</ChildrenWrapper>
7070
</Wrapper>
7171
)
7272
}

src/widgets/Buttons/styles/button.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ export const Wrapper = styled.button<TButton>`
9595
opacity: 1;
9696
}
9797
`
98-
export const ChildrenWrapper = styled.div<{ size: TSIZE }>`
98+
type TChildrenWrapper = { size: TSIZE; ghost: boolean; noBorder: boolean }
99+
export const ChildrenWrapper = styled.div<TChildrenWrapper>`
99100
${css.flex('align-both')};
100101
width: 100%;
101102
font-size: ${({ size }) => getFontSize(size)};
102-
font-weight: 600;
103+
font-weight: ${({ ghost, noBorder }) => (ghost && noBorder ? 400 : 600)};
103104
position: relative;
104105
z-index: 2;
105106
`

utils/themes/skins/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const fontColor = primaryColor
1212
const sidebarBg = '#23292E'
1313
const markdownFont = '#9eb8bd'
1414
const border = '#EAE9E9'
15-
const link = '#6d9bd3'
15+
const link = '#005196' // '#6494cd'
1616

1717
const actionText = '#647392'
1818
const descText = '#666'

0 commit comments

Comments
 (0)