Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ const ClipboardCopy = ({value, ...props}) => {
setCopied(true)
announce(`Copied to clipboard`)
}}
sx={{
'&:focus-visible': {
outline: '2px solid',
outlineColor: '-webkit-focus-ring-color',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using -webkit-focus-ring-color ensures the focus indicator matches what users expect from their operating system

outlineOffset: '2px',
},
}}
>
<Octicon icon={copied ? CheckIcon : CopyIcon} sx={{color: copied ? 'success.fg' : 'fg.muted'}} />
</Button>
Expand Down
Loading