Skip to content
Snippets Groups Projects
Commit 0675289c authored by Tamlyn Rhodes's avatar Tamlyn Rhodes Committed by Giannis Kopanas
Browse files

fix: resolve remaining jsx-a11y lint issues

parent d57361f3
No related branches found
No related tags found
No related merge requests found
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"enforceForRenamedProperties": false "enforceForRenamedProperties": false
}], }],
"global-require": 0, "global-require": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/no-dynamic-require": 0, "import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0, "import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0, "import/no-named-as-default": 0,
......
...@@ -39,7 +39,7 @@ export default class Blog extends React.Component { ...@@ -39,7 +39,7 @@ export default class Blog extends React.Component {
<Row className={styles.hero}> <Row className={styles.hero}>
<Col md={8} mdOffset={2}> <Col md={8} mdOffset={2}>
<h1>Welcome to {this.props.blog && this.props.blog.title}</h1> <h1>Welcome to {this.props.blog && this.props.blog.title}</h1>
<label>Science for the Web</label> <p>Science for the Web</p>
</Col> </Col>
</Row> </Row>
</Grid> </Grid>
......
/* eslint-disable jsx-a11y/anchor-is-valid */
import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { Row, Col } from 'react-bootstrap' import { Row, Col } from 'react-bootstrap'
......
...@@ -10,7 +10,7 @@ const Navigation = ({ actions, currentUser }) => ( ...@@ -10,7 +10,7 @@ const Navigation = ({ actions, currentUser }) => (
<Navbar fluid> <Navbar fluid>
<Navbar.Header> <Navbar.Header>
<NavbarBrand> <NavbarBrand>
<a href="#"> <a href="/">
<img alt="pubsweet" src="/pubsweet.jpg" /> <img alt="pubsweet" src="/pubsweet.jpg" />
</a> </a>
</NavbarBrand> </NavbarBrand>
......
...@@ -4,6 +4,7 @@ import PropTypes from 'prop-types' ...@@ -4,6 +4,7 @@ import PropTypes from 'prop-types'
import th from '../helpers/themeHelper' import th from '../helpers/themeHelper'
import { Icon, Link } from '../atoms' import { Icon, Link } from '../atoms'
import PlainButton from './PlainButton'
// #region styled-components // #region styled-components
const Root = styled.nav` const Root = styled.nav`
...@@ -80,10 +81,10 @@ const DefaultRightComponent = ({ user, onLogoutClick, loginLink }) => ( ...@@ -80,10 +81,10 @@ const DefaultRightComponent = ({ user, onLogoutClick, loginLink }) => (
{user && ( {user && (
<Item> <Item>
<Link onClick={onLogoutClick} to="#"> <PlainButton onClick={onLogoutClick}>
<Icon size={2}>power</Icon> <Icon size={2}>power</Icon>
Logout Logout
</Link> </PlainButton>
</Item> </Item>
)} )}
......
...@@ -106,8 +106,15 @@ exports[`AppBar With admin user 1`] = ` ...@@ -106,8 +106,15 @@ exports[`AppBar With admin user 1`] = `
} }
.c6 { .c6 {
background: none;
border: none;
padding: 0;
color: black; color: black;
-webkit-text-decoration: underline;
text-decoration: underline;
cursor: pointer; cursor: pointer;
font-family: inherit;
font-size: inherit;
} }
.c0 { .c0 {
...@@ -215,10 +222,10 @@ exports[`AppBar With admin user 1`] = ` ...@@ -215,10 +222,10 @@ exports[`AppBar With admin user 1`] = `
<span <span
className="c4" className="c4"
> >
<a <button
className="c6" className="c6"
href="#"
onClick={[Function]} onClick={[Function]}
type={undefined}
> >
<span <span
className="c5" className="c5"
...@@ -249,7 +256,7 @@ exports[`AppBar With admin user 1`] = ` ...@@ -249,7 +256,7 @@ exports[`AppBar With admin user 1`] = `
</svg> </svg>
</span> </span>
Logout Logout
</a> </button>
</span> </span>
</div> </div>
</nav> </nav>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment