Skip to content

Commit

Permalink
fix(demo): add html lang attr for a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
hshoff committed Oct 23, 2020
1 parent a3bcbcd commit ff8f5e4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/visx-demo/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document';

class VisxDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}

render() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

export default VisxDocument;

0 comments on commit ff8f5e4

Please sign in to comment.