Change theme default value as to meet WCAG

This commit is contained in:
Dag Frode Solberg 2022-12-06 15:25:51 +01:00
parent 3d410b6002
commit 30190789a3
2 changed files with 4 additions and 4 deletions

View File

@ -288,8 +288,8 @@ You can use all of the following options with the standalone version of the <red
* `color`: # COMPUTED: colors.primary.main
* `visited`: # COMPUTED: typography.links.color
* `hover`: # COMPUTED: lighten(0.2 typography.links.color)
* `textDecoration`: 'auto'
* `hoverTextDecoration`: 'auto'
* `textDecoration`: 'underline'
* `hoverTextDecoration`: 'underline'
* `sidebar`
* `width`: '260px'
* `backgroundColor`: '#fafafa'

View File

@ -128,8 +128,8 @@ const defaultTheme: ThemeInterface = {
color: ({ colors }) => colors.primary.main,
visited: ({ typography }) => typography.links.color,
hover: ({ typography }) => lighten(0.2, typography.links.color),
textDecoration: 'auto',
hoverTextDecoration: 'auto',
textDecoration: 'underline',
hoverTextDecoration: 'underline',
},
},
sidebar: {