Skip to content

Commit

Permalink
aria-label for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Allen committed Apr 12, 2017
1 parent d192874 commit 4dfb3c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/collections/favorites-button.jsx
Expand Up @@ -147,6 +147,7 @@ export default class FavoritesButton extends React.Component {

return (
<button
aria-label={(this.state.favorited) ? 'Unfavorite' : 'Favorite'}
className={`favorites-button ${this.props.className || ''}`}
type="button"
title={(this.state.favorited) ? 'Unfavorite' : 'Favorite'}
Expand Down

0 comments on commit 4dfb3c4

Please sign in to comment.