File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
.button , .toggleButton , .githubLink {
2
2
cursor : pointer !important ;
3
- z-index : 10 ;
3
+ z-index : 100 ;
4
+ position : relative;
4
5
}
5
6
6
7
.toggleButton , .githubLink {
44
45
user-select : none;
45
46
touch-action : manipulation;
46
47
min-height : 36px ;
48
+ -webkit-tap-highlight-color : transparent;
47
49
}
48
50
49
- .button : hover {
50
- background : rgba (255 , 255 , 255 , 0.15 );
51
+ .button : active {
52
+ background : rgba (255 , 255 , 255 , 0.2 );
51
53
transform : translateY (-2px );
52
54
box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.2 );
53
55
}
Original file line number Diff line number Diff line change @@ -334,7 +334,16 @@ const App: React.FC = () => {
334
334
return (
335
335
< button
336
336
key = { key }
337
- onClick = { ( ) => setCurrentPreset ( key ) }
337
+ onClick = { ( e ) => {
338
+ e . preventDefault ( ) ;
339
+ e . stopPropagation ( ) ;
340
+ setCurrentPreset ( key ) ;
341
+ } }
342
+ onTouchEnd = { ( e ) => {
343
+ e . preventDefault ( ) ;
344
+ e . stopPropagation ( ) ;
345
+ setCurrentPreset ( key ) ;
346
+ } }
338
347
className = { `button ${ currentPreset === key ? 'active' : '' } ` }
339
348
>
340
349
{ preset . name }
You can’t perform that action at this time.
0 commit comments