Skip to content

Commit

Permalink
chore: accessability improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Apr 24, 2020
1 parent ca78a28 commit e3fba0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import cx from 'classnames';
import { link } from '../types';
import './Sidebar.scss';

// TODO: aria

// recursively create navigation
const renderNav = (page, index) => (
<li key={index}>
Expand All @@ -21,7 +19,7 @@ const renderNav = (page, index) => (
const Sidebar = ({ pages }) => (
<aside className="Sidebar">
<h3>Pages</h3>
<nav>
<nav role="navigation" aria-label="Sidebar">
<ul>{pages.map(renderNav)}</ul>
</nav>
</aside>
Expand Down

0 comments on commit e3fba0c

Please sign in to comment.