Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
8 changes: 7 additions & 1 deletion docs/src/components/Demo/CodeSandboxLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ export function CodeSandboxLink({ title, description, ...props }: CodeSandboxLin
}, [files, language, name, title, description]);

return (
<GhostButton aria-label="Open in CodeSandbox" type="button" onClick={handleClick} {...props}>
<GhostButton
aria-label="Open in CodeSandbox"
type="button"
onClick={handleClick}
className="ExternalLink"
{...props}
>
CodeSandbox
<ExternalLinkIcon />
</GhostButton>
Expand Down
4 changes: 4 additions & 0 deletions docs/src/components/GhostButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
outline: 0;
user-select: none;

&.ExternalLink {
cursor: pointer;
}

&::before,
&::after {
content: '';
Expand Down
Loading