We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 570ff50 + 7e32605 commit 094d76aCopy full SHA for 094d76a
lib/ui/src/components/sidebar/Menu.tsx
@@ -45,9 +45,21 @@ export const MenuButton = styled(Button)<MenuButtonProps>(({ highlighted, theme
45
position: 'relative',
46
overflow: 'visible',
47
padding: 7,
48
+ transition: 'none', // prevents button border from flashing when focused/blurred
49
'&:focus': {
50
background: theme.barBg,
- boxShadow: `${theme.color.secondary} 0 0 0 1px inset`,
51
+ boxShadow: 'none',
52
+ },
53
+ // creates a pseudo border that does not affect the box model, but is accessible in high contrast mode
54
+ '&:focus:before': {
55
+ content: '""',
56
+ position: 'absolute',
57
+ top: 0,
58
+ bottom: 0,
59
+ left: 0,
60
+ right: 0,
61
+ borderRadius: '100%',
62
+ border: `1px solid ${theme.color.secondary}`,
63
},
64
65
...(highlighted && {
0 commit comments