Commit f3fc29b 1 parent feadd0a commit f3fc29b Copy full SHA for f3fc29b
File tree 1 file changed +13
-8
lines changed
src/components/buttons/link-button
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,25 @@ const LinkButton = props => (
23
23
cursor : pointer;
24
24
text-decoration : none;
25
25
span {
26
- color : ${ vars . colorPrimary } ;
27
- ${ props . isDisabled ? `color: ${ vars . colorNeutral } ;` : '' }
28
- }
29
- & : hover {
30
- span {
31
- color : ${ vars . colorPrimary25 } ;
32
- ${ props . isDisabled ? `color: ${ vars . colorNeutral } );` : '' }
33
- }
26
+ color : ${ props . isDisabled ? vars . colorNeutral : vars . colorPrimary } ;
34
27
}
35
28
` ,
36
29
props . isDisabled &&
37
30
css `
38
31
cursor : not-allowed;
39
32
` ,
33
+ ! props . isDisabled &&
34
+ css `
35
+ & : hover {
36
+ span {
37
+ color : ${ vars . colorPrimary25 } ;
38
+ }
39
+
40
+ * {
41
+ fill : ${ vars . colorPrimary25 } ;
42
+ }
43
+ }
44
+ ` ,
40
45
] }
41
46
onClick = { props . isDisabled ? event => event . preventDefault ( ) : undefined }
42
47
data-track-component = "LinkButton"
You can’t perform that action at this time.
0 commit comments