File tree Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ export const LoginModal: React.FC = () => {
49
49
Submit
50
50
</ Button >
51
51
</ div >
52
+ < div className = { styles . links } >
53
+ < Button type = 'button' variant = 'link' onClick = { ( ) => console . log ( 'Forgot password clicked' ) } >
54
+ Forgot password?
55
+ </ Button >
56
+ < Button type = 'button' variant = 'link' onClick = { ( ) => console . log ( 'Sign up clicked' ) } >
57
+ Sign up
58
+ </ Button >
59
+ </ div >
52
60
</ form >
53
61
</ Modal >
54
62
)
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
2
2
import classNames from 'classnames'
3
3
import styles from '../../styles/components/Button/Button.module.scss'
4
4
5
- type ButtonVariant = 'primary' | 'secondary' | 'warning' | 'success' | 'danger' | 'outline'
5
+ type ButtonVariant = 'primary' | 'secondary' | 'warning' | 'success' | 'danger' | 'outline' | 'link'
6
6
7
7
type ButtonProps = {
8
8
children : React . ReactNode
Original file line number Diff line number Diff line change 4
4
gap : 8px ;
5
5
margin-top : 2.25rem ;
6
6
}
7
+
8
+ .links {
9
+ display : flex ;
10
+ justify-content : flex-end ;
11
+ margin-top : 1.5rem ;
12
+ }
Original file line number Diff line number Diff line change 62
62
opacity : 0.6 ;
63
63
cursor : not-allowed ;
64
64
}
65
+
66
+ .link {
67
+ color : var (--text-color-link );
68
+ text-decoration : none ;
69
+ font-size : 1rem ;
70
+ font-weight : var (--font-weight-normal );
71
+ min-width : auto ;
72
+ }
73
+
74
+ .link :hover ,
75
+ .link :focus {
76
+ color : var (--text-color-link-hover );
77
+ }
Original file line number Diff line number Diff line change 1
1
.header {
2
2
background-color : var (--background-color-secondary );
3
- padding : 1 rem 1.5rem ;
3
+ padding : 0 1.5rem ;
4
4
display : flex ;
5
5
align-items : center ;
6
- border-bottom : 1px solid var (--border-color-opaque );
7
6
height : var (--header-desktop-height );
8
7
}
Original file line number Diff line number Diff line change 13
13
--text-color-secondary : #cccccc ;
14
14
--text-color-tertiary : #000000 ;
15
15
--text-color-link : #74a8dc ;
16
+ --text-color-link-hover : #49a4ff ;;
16
17
}
17
18
18
19
:root ,
19
20
[data-theme = " dark" ] {
20
- --button-primary-bg : #3d9dfe ;
21
+ --button-primary-bg : var ( --border-color-primary ) ;
21
22
--button-primary-color : var (--text-color-tertiary );
22
- --button-primary-bg-hover : #49a4ff ;
23
+ --button-primary-bg-hover : var ( --text-color-link-hover ) ;
23
24
--button-secondary-bg : var (--background-color-glow );
24
25
--button-secondary-color : var (--text-color-primary );
25
26
--button-secondary-bg-hover : #34397b ;
You can’t perform that action at this time.
0 commit comments