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; line-height: 16px;
color: #86838B; color: #86838B;
margin-top: 12px; margin-top: 12px;
text-align: center;
} }
.info-box { .info-box {

View File

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