go-ethereum/src/theme/components/Link.ts
Paul Wackerow 93c255ce39
Adjust link styling for various states [Fixes #89] (#129)
* fix: link styling for various states

updates hover/active/focus link states to match design system

* hover underline color to secondary
2022-12-05 21:40:07 -03:00

30 lines
825 B
TypeScript

export const Link = {
variants: {
'button-link-secondary': {
color: 'primary',
bg: 'button-bg',
_hover: { textDecoration: 'none', bg: 'primary', color: 'bg' },
_focus: {
textDecoration: 'none',
bg: 'primary',
color: 'bg',
boxShadow: 'inset 0 0 0 3px var(--chakra-colors-bg)'
},
_active: { textDecoration: 'none', bg: 'secondary', color: 'bg' }
},
light: {
textDecoration: 'underline',
color: 'primary',
_hover: { color: 'body', textDecorationColor: 'secondary' },
_focus: {
color: 'primary',
boxShadow: '0 0 0 1px var(--chakra-colors-primary) !important',
textDecoration: 'none'
},
_active: {
color: 'secondary',
textDecorationColor: 'secondary'
}
}
}
};