File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useCallback } from 'react' ;
2
+ import styled from 'styled-components' ;
2
3
import { useTranslation } from 'react-i18next' ;
3
4
import { useDispatch } from 'react-redux' ;
4
5
import { openPreferences } from '../actions/ide' ;
5
6
import { setPreferencesTab } from '../actions/preferences' ;
7
+ import { remSize , prop } from '../../../theme' ;
6
8
7
9
import { useP5Version } from '../hooks/useP5Version' ;
8
10
11
+ const VersionPickerButton = styled . button `
12
+ color: ${ prop ( 'Button.primary.default.foreground' ) } ;
13
+ &:hover {
14
+ color: ${ prop ( 'Button.primary.hover.background' ) } !important;
15
+ }
16
+ ` ;
17
+
9
18
const VersionIndicator = ( ) => {
10
19
const { versionInfo } = useP5Version ( ) ;
11
20
const { t } = useTranslation ( ) ;
@@ -17,11 +26,11 @@ const VersionIndicator = () => {
17
26
} , [ ] ) ;
18
27
19
28
return (
20
- < button onClick = { openVersionSettings } >
29
+ < VersionPickerButton onClick = { openVersionSettings } >
21
30
{ t ( 'Toolbar.LibraryVersion' ) }
22
31
23
32
{ versionInfo ?. version || t ( 'Toolbar.CustomLibraryVersion' ) }
24
- </ button >
33
+ </ VersionPickerButton >
25
34
) ;
26
35
} ;
27
36
You can’t perform that action at this time.
0 commit comments