We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98fa89e commit eef7397Copy full SHA for eef7397
scripts/build.ts
@@ -261,7 +261,7 @@ async function createCheatsheet(
261
const distCheatsheetFilePath = join(distDir, 'cheatsheet.html');
262
263
const c = srcSvgData.map(
264
- (svgData) => `<svg><use href="#${svgData.iconName}" xlink:href="#${svgData.iconName}"/></svg>`,
+ (svgData) => `<a href="./svg/${svgData.fileName}"><svg><use href="#${svgData.iconName}" xlink:href="#${svgData.iconName}"/></svg></a>`,
265
);
266
267
c.push(svgSymbolsContent);
scripts/cheatsheet-template.html
@@ -23,6 +23,13 @@
23
width: 32px;
24
height: 32px;
25
}
26
+ a {
27
+ color: inherit;
28
+ text-decoration: none;
29
+ }
30
+ a:hover {
31
+ opacity: 0.7;
32
33
</style>
34
</head>
35
<body>
0 commit comments