From ff8f5e4033ac3ddc2135ec1a56c669b54d1a2302 Mon Sep 17 00:00:00 2001 From: hshoff Date: Fri, 23 Oct 2020 11:05:25 -0400 Subject: [PATCH] fix(demo): add html lang attr for a11y --- packages/visx-demo/src/pages/_document.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/visx-demo/src/pages/_document.tsx diff --git a/packages/visx-demo/src/pages/_document.tsx b/packages/visx-demo/src/pages/_document.tsx new file mode 100644 index 000000000..d6cd95188 --- /dev/null +++ b/packages/visx-demo/src/pages/_document.tsx @@ -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 ( + + + +
+ + + + ); + } +} + +export default VisxDocument;