Skip to content

Commit

Permalink
correct colors for the link component
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebyt committed Dec 13, 2024
1 parent 0aa4fce commit b1505ce
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
28 changes: 24 additions & 4 deletions packages/yoroi-extension/app/styles/overrides/Link.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
// @flow

const Link = {
import { darkThemeBase } from '../themes/dark-theme-base';
import { lightThemeBase } from '../themes/light-theme-base';

const { palette: darkThemePalette } = darkThemeBase;
const { palette: lightThemePalette } = lightThemeBase;
const ltDs = lightThemePalette.ds;
const dtDs = darkThemePalette.ds;

export const LightLink = {
styleOverrides: {
root: {
color: ltDs.text_primary_medium,
'&:hover': {
textDecoration: 'underline',
color: ltDs.text_primary_max,
},
},
},
}

export const DarkLink = {
styleOverrides: {
root: {
color: 'ds.text_primary_medium',
color: dtDs.text_primary_medium,
'&:hover': {
textDecoration: 'underline',
color: dtDs.text_primary_max,
},
},
},
};
export { Link };
}
4 changes: 2 additions & 2 deletions packages/yoroi-extension/app/styles/themes/dark-theme-mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
FormControl,
FormHelperText,
InputLabel,
Link,
DarkLink,
Menu,
MenuItem,
OutlinedInput,
Expand Down Expand Up @@ -37,7 +37,7 @@ const darkThemeComponents = {
MuiTabPanel: TabPanel,
MuiChip: Chip,
MuiTooltip: Tooltip,
MuiLink: Link,
MuiLink: DarkLink,
},
};

Expand Down
4 changes: 2 additions & 2 deletions packages/yoroi-extension/app/styles/themes/light-theme-mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
FormHelperText,
InputLabel,
LightButton,
Link,
LightLink,
Menu,
MenuItem,
OutlinedInput,
Expand Down Expand Up @@ -37,7 +37,7 @@ const lightThemeComponents = {
MuiTabPanel: TabPanel,
MuiChip: Chip,
MuiTooltip: Tooltip,
MuiLink: Link,
MuiLink: LightLink,
},
};

Expand Down

0 comments on commit b1505ce

Please sign in to comment.