From 97122c492eb222e6839c4d6f25c75bd069859bbf Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sat, 4 Jul 2020 14:58:39 -0700 Subject: [PATCH] Improve accessibility & SEO --- hyperglass/ui/components/ChakraSelect.js | 34 ++++++++++++++++++++++-- hyperglass/ui/public/robots.txt | 2 ++ hyperglass/ui/theme.js | 1 + 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 hyperglass/ui/public/robots.txt diff --git a/hyperglass/ui/components/ChakraSelect.js b/hyperglass/ui/components/ChakraSelect.js index b341b5b..93ff37f 100644 --- a/hyperglass/ui/components/ChakraSelect.js +++ b/hyperglass/ui/components/ChakraSelect.js @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { Text, useColorMode, useTheme } from "@chakra-ui/core"; import Select from "react-select"; import { opposingColor } from "~/util"; @@ -61,11 +61,26 @@ const ChakraSelect = React.forwardRef( dark: theme.colors.whiteAlpha[700], light: theme.colors.gray[600] }; - const menuBg = { dark: theme.colors.black, light: theme.colors.white }; + const menuBg = { + dark: theme.colors.blackFaded[800], + light: theme.colors.whiteFaded[50] + }; const menuColor = { dark: theme.colors.white, light: theme.colors.blackAlpha[800] }; + const scrollbar = { + dark: theme.colors.whiteAlpha[300], + light: theme.colors.blackAlpha[300] + }; + const scrollbarHover = { + dark: theme.colors.whiteAlpha[400], + light: theme.colors.blackAlpha[400] + }; + const scrollbarBg = { + dark: theme.colors.whiteAlpha[50], + light: theme.colors.blackAlpha[50] + }; return (