IconGrid: switch to fill-style icon buttons
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user