IconGrid: switch to fill-style icon buttons

This commit is contained in:
rektdeckard
2020-08-17 02:19:55 -04:00
parent 43154e0a1e
commit 8faf7be451
2 changed files with 10 additions and 9 deletions

View File

@@ -39,6 +39,7 @@
line-height: 16px;
color: #86838B;
margin-top: 12px;
text-align: center;
}
.info-box {

View File

@@ -4,10 +4,10 @@ import { motion } from "framer-motion";
import { saveAs } from "file-saver";
import {
Icon,
ArrowUpRightCircle,
Copy,
Prohibit,
X,
CheckCircle,
ArchiveDiskDot,
} from "phosphor-react";
import {
@@ -116,7 +116,7 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
{copied === "html" ? (
<CheckCircle size={24} color="#1FA647" weight="fill" />
) : (
<Copy size={24} color="currentColor" weight="regular" />
<Copy size={24} color="currentColor" weight="fill" />
)}
</button>
</pre>
@@ -132,7 +132,7 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
{copied === "react" ? (
<CheckCircle size={24} color="#1FA647" weight="fill" />
) : (
<Copy size={24} color="currentColor" weight="regular" />
<Copy size={24} color="currentColor" weight="fill" />
)}
</button>
</pre>
@@ -142,10 +142,10 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
style={{ color: isDark ? "white" : "black" }}
onClick={handleDownloadSVG}
>
<ArrowUpRightCircle
<ArchiveDiskDot
size={32}
color="currentColor"
weight="regular"
weight="fill"
/>{" "}
Download SVG
</button>
@@ -163,7 +163,7 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
<Copy
size={32}
color="currentColor"
weight="regular"
weight="fill"
/>
)}
{copied === "svg" ? "Copied!" : "Copy SVG"}
@@ -171,11 +171,11 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
</div>
</div>
<div className="close">
<Prohibit
<X
className="close-icon"
color="currentColor"
size={32}
weight="regular"
weight="fill"
onClick={() => setOpen(false)}
/>
</div>