1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 05:41:17 -04:00

fix some leftover stitches to-do items

This commit is contained in:
2022-03-03 13:18:12 -05:00
parent dc7622a7af
commit ea4e7025ff
12 changed files with 173 additions and 155 deletions

View File

@@ -10,9 +10,16 @@ const Button = styled("button", {
cursor: "pointer",
variants: {
success: {
copied: {
true: {
color: "$success !important",
color: "$success",
},
false: {
color: "$mediumDark",
"&:hover": {
color: "$link",
},
},
},
},
@@ -69,7 +76,7 @@ const CopyButton = forwardRef(function CopyButton(
aria-label="Copy to clipboard"
onClick={handleCopy}
disabled={!!copied}
success={copied}
copied={copied}
ref={ref}
>
<Icon as={copied ? CheckOcticon : ClipboardOcticon} />