Skip to content
Snippets Groups Projects
Commit 169cb7b0 authored by Chris Lawton's avatar Chris Lawton
Browse files

add aria-labels to buttons

parent 08d02901
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,8 @@ class Switcher extends React.Component { ...@@ -16,8 +16,8 @@ class Switcher extends React.Component {
return ReactDOM.createPortal( return ReactDOM.createPortal(
<> <>
<button className={`button button--switcher ${open ? 'is-active' : ''}`} onClick={handleOpen}><ArrayIcon /></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}><GridIcon /></button> <button className={`button button--switcher ${open ? '' : 'is-active'}`} onClick={handleClose} aria-label="Show table"><GridIcon /></button>
</>, </>,
this.el, this.el,
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment