Skip to content

Commit

Permalink
Merge pull request #2616 from headlamp-k8s/add-cluster-bug
Browse files Browse the repository at this point in the history
frontend: ClusterChooserPopUp: Fix dark mode visibility
  • Loading branch information
joaquimrocha authored Dec 4, 2024
2 parents a0d4185 + fbb5c00 commit db591f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frontend/src/components/cluster/ClusterChooserPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,17 +291,20 @@ function ClusterChooserPopup(props: ChooserPopupPros) {
{helpers.isElectron() && (
<>
<Button
sx={{
sx={theme => ({
backgroundColor: theme.palette.sidebarBg,
color: theme.palette.primary.contrastText,
color:
theme.palette.mode === 'dark'
? theme.palette.text.primary
: theme.palette.primary.contrastText,
'&:hover': {
color: theme.palette.text.primary,
color: theme.palette.text.secondary,
},
width: '100%',
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
textTransform: 'none',
}}
})}
onClick={() => history.push(createRouteURL('loadKubeConfig'))}
>
{t('translation|Add Cluster')}
Expand Down

0 comments on commit db591f3

Please sign in to comment.