Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Fix: axe a11y issues (fixes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijit945 committed Sep 12, 2019
1 parent 3d351a4 commit 52a62cf
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},
"dependencies": {
"@material-ui/core": "^4.4.1",
"@material-ui/core": "^4.4.2",
"@material-ui/icons": "^4.4.1",
"@material-ui/styles": "^4.4.1",
"axios": "^0.19.0",
Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function AppRouter(props) {
return (
<ThemeProvider theme={constants.THEME()}>
<HashRouter basename={process.env.PUBLIC_URL}>
<div>
<main>
<Switch>
{flatten(pages, constants.PATHNAME_PROPERTY).map(p => (
<Route
Expand Down Expand Up @@ -55,7 +55,7 @@ function AppRouter(props) {
/>
<Route component={NotFoundPage} />
</Switch>
</div>
</main>
</HashRouter>
</ThemeProvider>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/Drawer/NavItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class NavItem extends React.Component {
<RouterContextConsumer>
{context => (
<ListItem
selected={context.pathname === href}
className={classes.itemLeaf}
disableGutters
{...other}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Drawer/ResponsiveDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ class ResponsiveDrawer extends React.Component {
</Drawer>
</Hidden>
</nav>
<main className={classes.contentRoot}>
<div className={classes.contentRoot}>
<ContentBreadcrumb pathname={currentPage.pathname} />
<div
className={classes.content}
ref={this.setElementRef}
id={makeContentId(currentPage.pathname)}
key={currentPage.pathname}
/>
</main>
</div>
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function Header(props) {
color="inherit"
href={gitHubURL}
target="_blank"
rel="noopener"
aria-label={constants.GITHUB_REPO_TOOLTIP}
data-ga-event-category="AppBar"
data-ga-event-action="github"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function SearchBar(props) {
inputValue,
isOpen
}) => (
<div className={classes.container}>
<div className={classes.container} title="Search" role="textbox">
{
<div className={classes.search}>
<div className={classes.searchIcon}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/SvgIcons/CarbonMainIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import classNames from "classnames";
import PropTypes from "prop-types";
import React from "react";
import SvgIcon from "../../../public/Carbon.svg";
import constants from "../../helpers/constants";

const styles = theme => ({
logo: {
Expand All @@ -17,7 +16,7 @@ const styles = theme => ({
const CarbonMainIcon = ({ classes, className }) => (
<img
className={classNames(classes.logo, className)}
alt={constants.HEADER_MAIN_TITLE}
alt="Home"
src={SvgIcon}
/>
);
Expand Down

0 comments on commit 52a62cf

Please sign in to comment.