Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 50033f1

Browse files
author
Manuel Gellfart
authored
fix: link color in tooltips (#219)
* chore: bump package version to 2.0.2
1 parent e3a1af8 commit 50033f1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@safe-global/safe-react-components",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Safe UI components",
55
"main": "dist/index.min.js",
66
"typings": "dist/index.d.ts",

src/theme/safeTheme.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,19 @@ const createSafeTheme = (mode: PaletteMode): Theme => {
444444
...theme.typography.body2,
445445
color: theme.palette.background.main,
446446
backgroundColor: theme.palette.text.primary,
447+
'& .MuiLink-root': {
448+
color: isDarkMode
449+
? theme.palette.background.main
450+
: theme.palette.secondary.main,
451+
textDecorationColor: isDarkMode
452+
? theme.palette.background.main
453+
: theme.palette.secondary.main,
454+
},
455+
'& .MuiLink-root:hover': {
456+
color: isDarkMode
457+
? theme.palette.text.secondary
458+
: theme.palette.secondary.light,
459+
},
447460
}),
448461
arrow: ({ theme }) => ({
449462
color: theme.palette.text.primary,

0 commit comments

Comments
 (0)