From 94b30c3c36013804fe47b3650949abd47197cd52 Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Wed, 8 May 2019 17:42:35 -0700 Subject: [PATCH] A11y improvements (#755) * improve screen reading for menu values * clean up Drop down component * typo --- components/BackgroundSelect.js | 1 + components/Button.js | 5 +- components/Dropdown.js | 119 +++++++++++++++++---------------- components/Editor.js | 1 + components/Settings.js | 1 + components/Themes/index.js | 1 + package.json | 1 + yarn.lock | 5 ++ 8 files changed, 74 insertions(+), 60 deletions(-) diff --git a/components/BackgroundSelect.js b/components/BackgroundSelect.js index 9520099..86b683d 100644 --- a/components/BackgroundSelect.js +++ b/components/BackgroundSelect.js @@ -33,6 +33,7 @@ class BackgroundSelect extends React.PureComponent { return (
) - } else { - return null } + + return null } const SelectedItem = ({ @@ -245,7 +246,7 @@ const SelectedItem = ({ ) } -const ListItems = ({ children, color }) => { +const List = ({ children, color }) => { return (