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 11import React , { useCallback } from 'react' ;
2+ import styled from 'styled-components' ;
23import { useTranslation } from 'react-i18next' ;
34import { useDispatch } from 'react-redux' ;
45import { openPreferences } from '../actions/ide' ;
56import { setPreferencesTab } from '../actions/preferences' ;
7+ import { remSize , prop } from '../../../theme' ;
68
79import { useP5Version } from '../hooks/useP5Version' ;
810
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+
918const VersionIndicator = ( ) => {
1019 const { versionInfo } = useP5Version ( ) ;
1120 const { t } = useTranslation ( ) ;
@@ -17,11 +26,11 @@ const VersionIndicator = () => {
1726 } , [ ] ) ;
1827
1928 return (
20- < button onClick = { openVersionSettings } >
29+ < VersionPickerButton onClick = { openVersionSettings } >
2130 { t ( 'Toolbar.LibraryVersion' ) }
2231
2332 { versionInfo ?. version || t ( 'Toolbar.CustomLibraryVersion' ) }
24- </ button >
33+ </ VersionPickerButton >
2534 ) ;
2635} ;
2736
You can’t perform that action at this time.
0 commit comments