Fixed styling for copy / run code buttons in code snippet

This commit is contained in:
Piotr Janosz
2019-07-08 19:40:42 +02:00
committed by fabioberger
parent a9f046609c
commit 40234e5b4a
2 changed files with 6 additions and 3 deletions

View File

@@ -93,14 +93,15 @@ const CodeTag = styled.code`
}
`;
const CopyButton = styled(Button)`
const CopyButton = styled(Button).attrs({
isTransparent: true,
})`
float: right;
height: 32px;
padding: 0 12px;
margin-bottom: 13px;
font-size: 14px;
font-weight: 300;
background: white;
border: 1px solid ${colors.beigeWhite};
border-radius: ${BORDER_RADIUS};
color: ${colors.brandDark};

View File

@@ -44,7 +44,9 @@ const RunButton = styled(ActionButton)`
margin-bottom: 4px;
`;
const ResetButton = styled(ActionButton)`
const ResetButton = styled(ActionButton).attrs({
isTransparent: true,
})`
background-color: white;
color: ${colors.brandDark};
`;