From 0f59322bc3640952985c8db31ba11eb76595c02c Mon Sep 17 00:00:00 2001 From: cheng-tan Date: Wed, 17 Jan 2024 23:42:45 -0500 Subject: [PATCH] Fix website accessibility (#1153) * fix light theme accessibility * fix dark theme * fix format * Fix formatting --------- Co-authored-by: Davor Runje Co-authored-by: Chi Wang --- website/docusaurus.config.js | 9 +++++- website/src/components/GalleryPage.js | 3 +- website/src/css/custom.css | 44 ++++++++++++++------------- website/static/js/custom.js | 27 ++++++++++++++++ 4 files changed, 60 insertions(+), 23 deletions(-) create mode 100644 website/static/js/custom.js diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index cf258d5fab7..092224a34b5 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -12,6 +12,13 @@ module.exports = { favicon: "img/ag.ico", organizationName: "Microsoft", // Usually your GitHub org/user name. projectName: "AutoGen", // Usually your repo name. + scripts: [ + { + src: '/autogen/js/custom.js', + async: true, + defer: true, + }, + ], markdown: { format: 'detect', // Support for MD files with .md extension }, @@ -103,7 +110,7 @@ module.exports = { ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} AutoGen Authors | Privacy and Cookies`, + copyright: `Copyright © ${new Date().getFullYear()} AutoGen Authors | Privacy and Cookies`, }, }, presets: [ diff --git a/website/src/components/GalleryPage.js b/website/src/components/GalleryPage.js index 5ab7c8fa3fc..312ebffdc51 100644 --- a/website/src/components/GalleryPage.js +++ b/website/src/components/GalleryPage.js @@ -61,6 +61,7 @@ const GalleryPage = () => { style={{ width: "100%", marginBottom: 16 }} value={selectedTags} onChange={handleTagChange} + aria-label="Filter by tags" > {allTags.map((tag) => (