File tree 3 files changed +26
-19
lines changed 3 files changed +26
-19
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ button.square {
57
57
}
58
58
button .inverted : hover ,
59
59
button .inverted .active {
60
- background : rgba (0 , 129 , 132 , 0.8 );
60
+ background : rgba (0 , 129 , 132 , 0.8 ) !important ;
61
61
}
62
62
button .inverted {
63
- background : rgba (0 , 129 , 132 , 1 );
63
+ background : rgba (0 , 129 , 132 , 1 ) !important ;
64
64
}
65
65
66
66
button [disabled ] {
67
67
background : rgba (255 , 255 , 255 , 0.2 );
68
- cursor : not-allowed ;
68
+ cursor : default ;
69
69
}
70
70
button [disabled ]: hover {
71
71
background : rgba (255 , 255 , 255 , 0.2 );
@@ -531,13 +531,17 @@ button.small .icon {
531
531
align-self : stretch;
532
532
}
533
533
534
+ # file-actions button [disabled ], # file-actions button [disabled ]: hover {
535
+ opacity : 0.4 ;
536
+ }
537
+
534
538
# file-actions button .icon {
535
539
width : 100% ;
536
540
height : 100% ;
537
541
}
538
542
539
543
# file-actions button : hover {
540
- opacity : 0.2 ;
544
+ opacity : 0.5 ; * /
541
545
}
542
546
543
547
.device-header {
Original file line number Diff line number Diff line change 1
1
function Button ( args ) {
2
2
const {
3
+ first = false ,
3
4
size = '' ,
5
+ square = false ,
4
6
icon = 'connect.svg' ,
5
- onClick = ( e ) => false ,
7
+ onClick = ( e ) => { console . log ( e ) ; false } ,
6
8
disabled = false ,
7
9
active = false ,
8
- label,
9
10
tooltip,
10
- background,
11
- first,
12
- square
11
+ label,
12
+ background
13
13
} = args
14
14
let tooltipEl = html ``
15
15
if ( tooltip ) {
16
16
tooltipEl = html `< div class ="tooltip "> ${ tooltip } </ div > `
17
17
}
18
- let activeClass = active ? 'active' : 'inactive '
18
+ let activeClass = active ? 'active' : ''
19
19
let backgroundClass = background ? 'inverted' : ''
20
- let labelActiveClass = disabled ? 'inactive' : 'active'
21
20
let buttonFirstClass = first ? 'first' : ''
22
21
let squareClass = square ? 'square' : ''
22
+ let labelActiveClass = disabled ? 'inactive' : 'active'
23
23
let labelItem = size === 'small' ? '' : html `< div class ="label ${ labelActiveClass } "> ${ label } </ div > `
24
+
24
25
return html `
25
- < div class ="button ${ buttonFirstClass } ">
26
- < button disabled =${ disabled } class ="${ squareClass } ${ size } ${ activeClass } ${ backgroundClass } " onclick=${ onClick } >
27
- < img class ="icon " src ="media/ ${ icon } " />
28
- </ button >
29
- ${ labelItem }
30
- ${ tooltipEl }
31
- </ div >
32
- `
26
+ < div class ="button ${ buttonFirstClass } ">
27
+ < button disabled =${ disabled } class ="${ squareClass } ${ size } ${ activeClass } ${ backgroundClass } " onclick=${ onClick } >
28
+ < img class ="icon " src ="media/ ${ icon } " />
29
+ </ button >
30
+ ${ labelItem }
31
+ ${ tooltipEl }
32
+ </ div >
33
+ `
33
34
}
Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ function FileActions(state, emit) {
15
15
icon : 'arrow-left-white.svg' ,
16
16
size : 'small' ,
17
17
background : 'inverted' ,
18
+ active : true ,
18
19
disabled : ! canUpload ( { isConnected, selectedFiles } ) ,
19
20
onClick : ( ) => emit ( 'upload-files' )
20
21
} ) }
21
22
${ Button ( {
22
23
icon : 'arrow-right-white.svg' ,
23
24
size : 'small' ,
24
25
background : 'inverted' ,
26
+ active : true ,
25
27
disabled : ! canDownload ( { isConnected, selectedFiles } ) ,
26
28
onClick : ( ) => emit ( 'download-files' )
27
29
} ) }
You can’t perform that action at this time.
0 commit comments