chore: use px values instead of theme.spacing and theme.shape.borderRadius (#10519)

This commit is contained in:
Kayla Washburn
2023-11-06 11:43:06 -05:00
committed by GitHub
parent 0cb875cba5
commit ca6e6213bf
144 changed files with 774 additions and 958 deletions

View File

@ -46,8 +46,8 @@ export const CopyButton: React.FC<React.PropsWithChildren<CopyButtonProps>> = ({
<IconButton
className={buttonClassName}
css={(theme) => css`
border-radius: ${theme.shape.borderRadius}px;
padding: ${theme.spacing(0.85)};
border-radius: 8px;
padding: 8px;
min-width: 32px;
&:hover {
@ -64,15 +64,7 @@ export const CopyButton: React.FC<React.PropsWithChildren<CopyButtonProps>> = ({
) : (
<FileCopyIcon css={fileCopyIconStyles} />
)}
{ctaCopy && (
<div
css={(theme) => ({
marginLeft: theme.spacing(1),
})}
>
{ctaCopy}
</div>
)}
{ctaCopy && <div css={{ marginLeft: 8 }}>{ctaCopy}</div>}
</IconButton>
</div>
</Tooltip>