Skip to content

Commit

Permalink
Update CopyButton styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyTripleA committed Oct 21, 2024
1 parent adbf02a commit 6033f09
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/frontend/src/components/ui/Buttons/CopyButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ function CopyButton ({ text, className }) {
event.preventDefault()
copyToClipboard(text, showMessage)
}}
px={2}
minW={0}
p={0}
className={`CopyButton ${className}`}
_hover={{ color: 'gray.100' }}
_active={{ color: 'white' }}
flexShrink={0}
>
<Tooltip
label={messageState.text}
Expand All @@ -52,7 +56,16 @@ function CopyButton ({ text, className }) {
isOpen={messageState.active}
p={3}
>
<CopyIcon w={4} h={4} color={'gray.250'}/>
<CopyIcon
w={4}
h={4}
color={'gray.250'}
_hover={{ color: 'white' }}
_active={{ color: 'gray.100' }}
transition={'.2s'}
boxSizing={'content-box'}
p={1}
/>
</Tooltip>
</Button>
)
Expand Down

0 comments on commit 6033f09

Please sign in to comment.