From 169cb7b025d6be8d53d2af8f9d3f252204ee591a Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Fri, 11 Jan 2019 10:30:31 +0000
Subject: [PATCH] add aria-labels to buttons

---
 opentech/static_src/src/app/src/components/Switcher/index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/opentech/static_src/src/app/src/components/Switcher/index.js b/opentech/static_src/src/app/src/components/Switcher/index.js
index e818111a3..e3c04e79f 100644
--- a/opentech/static_src/src/app/src/components/Switcher/index.js
+++ b/opentech/static_src/src/app/src/components/Switcher/index.js
@@ -16,8 +16,8 @@ class Switcher extends React.Component {
 
         return ReactDOM.createPortal(
             <>
-                <button className={`button button--switcher ${open ? 'is-active' : ''}`} onClick={handleOpen}><ArrayIcon /></button>
-                <button className={`button button--switcher ${open ? '' : 'is-active'}`} onClick={handleClose}><GridIcon /></button>
+                <button className={`button button--switcher ${open ? 'is-active' : ''}`} onClick={handleOpen} aria-label="Show grid"><ArrayIcon /></button>
+                <button className={`button button--switcher ${open ? '' : 'is-active'}`} onClick={handleClose} aria-label="Show table"><GridIcon /></button>
             </>,
             this.el,
         );
-- 
GitLab