File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed
src-ts/tools/learn/learn-lib Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 1
1
@import ' ../../../../lib/styles/includes' ;
2
2
3
3
.wrap {
4
- @include icon-mxx ;
5
- border-radius : 50% ;
4
+ min-width : $space-mxx ;
5
+ height : $space-mxx ;
6
+ border-radius : calc ($space-mxx / 2 );
6
7
7
8
color : $tc-white ;
8
9
border : $border solid currentColor ;
9
10
10
11
display : flex ;
11
12
align-items : center ;
12
13
justify-content : center ;
14
+ gap : $space-xs ;
13
15
14
16
padding : $space-sm ;
15
17
23
25
@include icon-mx ;
24
26
}
25
27
}
28
+
29
+ .label {
30
+ @include font-roboto ;
31
+ display : block ;
32
+ text-transform : uppercase ;
33
+ font-weight : 700 ;
34
+ font-size : 16px ;
35
+ line-height : 18px ;
36
+ letter-spacing : 0.008em ;
37
+ padding-right : $space-xs ;
38
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import classNames from 'classnames'
4
4
import styles from './ActionButton.module.scss'
5
5
6
6
interface ActionButtonProps {
7
+ children ?: ReactNode
7
8
className ?: string
8
9
icon : ReactNode
9
10
onClick ?: ( ) => void
@@ -12,6 +13,11 @@ interface ActionButtonProps {
12
13
}
13
14
14
15
const ActionButton : FC < ActionButtonProps > = ( props : ActionButtonProps ) => {
16
+ const label : ReactNode = props . children && (
17
+ < span className = { styles . label } >
18
+ { props . children }
19
+ </ span >
20
+ )
15
21
16
22
// if there is a url, this is a link button
17
23
if ( ! ! props . url ) {
@@ -24,6 +30,7 @@ const ActionButton: FC<ActionButtonProps> = (props: ActionButtonProps) => {
24
30
target = { props . target }
25
31
>
26
32
{ props . icon }
33
+ { label }
27
34
</ a >
28
35
)
29
36
}
@@ -34,6 +41,7 @@ const ActionButton: FC<ActionButtonProps> = (props: ActionButtonProps) => {
34
41
onClick = { props . onClick }
35
42
>
36
43
{ props . icon }
44
+ { label }
37
45
</ div >
38
46
)
39
47
}
Original file line number Diff line number Diff line change 29
29
.btns-wrap {
30
30
display : flex ;
31
31
flex-direction : column ;
32
- align-items : center ;
32
+ align-items : flex-start ;
33
33
z-index : 1 ;
34
34
position : relative ;
35
35
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ const CertificatePageLayout: FC<CertificatePageLayoutProps> = (props: Certificat
132
132
< ActionButton
133
133
icon = { < IconOutline . ShareIcon /> }
134
134
onClick = { shareModal . show }
135
- />
135
+ >
136
+ Share certificate
137
+ </ ActionButton >
136
138
</ div >
137
139
) }
138
140
</ div >
You can’t perform that action at this time.
0 commit comments