Skip to content

Commit

Permalink
Fix: copy button in dark mode (#1268)
Browse files Browse the repository at this point in the history
* Fix: copy button in dark mode

* currentColor
  • Loading branch information
katspaugh authored Nov 29, 2022
1 parent fd9468a commit e980173
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion public/images/common/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/images/sidebar/copy-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/images/sidebar/copy.svg

This file was deleted.

10 changes: 0 additions & 10 deletions public/images/sidebar/qr.svg

This file was deleted.

14 changes: 1 addition & 13 deletions src/components/common/CopyButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,7 @@ const CopyButton = ({
return (
<Tooltip title={tooltipText} placement="top" onMouseLeave={handleMouseLeave}>
<IconButton aria-label={initialToolTipText} onClick={handleCopy} size="small" className={className}>
{children ?? (
<SvgIcon
component={CopyIcon}
inheritViewBox
color="primary"
sx={{
'& path': {
fill: ({ palette }) => palette.border.main,
},
}}
fontSize="small"
/>
)}
{children ?? <SvgIcon component={CopyIcon} inheritViewBox color="border" fontSize="small" />}
</IconButton>
</Tooltip>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Overview = (): ReactElement => {
</Grid>

<Box mt={2} mb={4}>
<EthHashInfo showAvatar={false} address={safeAddress} shortAddress={false} />
<EthHashInfo showAvatar={false} address={safeAddress} shortAddress={false} showCopyButton hasExplorer />
</Box>

<Grid container>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/SidebarHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SafeHeader = (): ReactElement => {
</Track>

<Track {...OVERVIEW_EVENTS.OPEN_EXPLORER}>
<a target="_blank" rel="noreferrer" href={blockExplorerLink?.href || '#'}>
<a target="_blank" rel="noreferrer" href={blockExplorerLink?.href || ''}>
<HeaderIconButton title={blockExplorerLink?.title || ''}>
<SvgIcon component={LinkIconBold} inheritViewBox fontSize="small" color="primary" />
</HeaderIconButton>
Expand Down

0 comments on commit e980173

Please sign in to comment.