This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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`
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const fontColor = primaryColor
1212const sidebarBg = '#23292E'
1313const markdownFont = '#9eb8bd'
1414const border = '#EAE9E9'
15- const link = '#6d9bd3 '
15+ const link = '#005196' // '#6494cd '
1616
1717const actionText = '#647392'
1818const descText = '#666'
You can’t perform that action at this time.
0 commit comments