1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-13 23:55:35 -04:00

alt attributes aren't valid on inline SVGs

This commit is contained in:
2022-01-03 12:12:23 -05:00
parent aa40d3384c
commit 13605d2ab5
3 changed files with 36 additions and 4 deletions

View File

@@ -20,12 +20,18 @@ const Footer = () => (
</div>
<div className={styles.powered_by}>
Made with{" "}
<span className={styles.beat}>
<HeartIcon alt="Love" />
<span className={styles.beat} title="Love">
<HeartIcon />
</span>{" "}
and{" "}
<a href="https://nextjs.org/" title="Powered by Next.js" target="_blank" rel="noopener noreferrer">
<NextjsIcon alt="Next.js" fill="currentColor" />
<a
href="https://nextjs.org/"
title="Powered by Next.js"
aria-label="Next.js"
target="_blank"
rel="noopener noreferrer"
>
<NextjsIcon fill="currentColor" />
</a>
.{" "}
<a

View File

@@ -50,6 +50,7 @@ module.exports = (phase) => {
icon: true,
typescript: true,
svgProps: {
"aria-hidden": true,
className: "icon",
},
},

25
pages/_document.tsx Normal file
View File

@@ -0,0 +1,25 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
import * as config from "../lib/config";
import type { DocumentContext } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang={config.siteLocale?.replace("_", "-")}>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;