Skip to content

Commit

Permalink
Merge pull request #21021 from yamanoku/fix-sidebar-skip-to-canvas-li…
Browse files Browse the repository at this point in the history
…nk-style

fix: skip to canvas link style
  • Loading branch information
ndelangen committed Feb 20, 2023
2 parents 62ccd7e + 9722e98 commit 932fc56
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions code/ui/manager/src/components/sidebar/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,27 @@ const SkipToCanvasLink = styled(Button)(({ theme }) => ({
'@media (min-width: 600px)': {
display: 'block',
position: 'absolute',
width: '100%',
padding: '10px 15px',
fontSize: theme.typography.size.s1,
zIndex: 3,
transform: 'translate(0,-100px)',
border: 0,
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: 'hidden',
clip: 'rect(0, 0, 0, 0)',
whiteSpace: 'nowrap',
wordWrap: 'normal',
opacity: 0,
transition: 'opacity 150ms ease-out',
'&:focus': {
transform: 'translate(0)',
width: '100%',
height: 'inherit',
padding: '10px 15px',
margin: 0,
clip: 'unset',
overflow: 'unset',
opacity: 1,
},
},
}));
Expand Down

0 comments on commit 932fc56

Please sign in to comment.