Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(PoweredBy): add a label to the Algolia logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored and mthuret committed Jul 28, 2017
1 parent a46f6e4 commit 2a6cf4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/react-instantsearch/src/components/PoweredBy.js
Expand Up @@ -50,8 +50,17 @@ class PoweredBy extends Component {

return (
<div {...cx('root')}>
<span {...cx('searchBy')}>{translate('searchBy')} </span>
<a href={url} target="_blank" {...cx('algoliaLink')}><AlgoliaLogo /></a>
<span {...cx('searchBy')}>
{translate('searchBy')}{' '}
</span>
<a
href={url}
target="_blank"
{...cx('algoliaLink')}
ariaLabel="Algolia"
>
<AlgoliaLogo />
</a>
</div>
);
}
Expand Down
Expand Up @@ -11,6 +11,7 @@ exports[`PoweredBy applies translations 1`] = `
</span>
<a
ariaLabel="Algolia"
className="ais-PoweredBy__algoliaLink"
href="url"
target="_blank"
Expand Down Expand Up @@ -66,6 +67,7 @@ exports[`PoweredBy default 1`] = `
</span>
<a
ariaLabel="Algolia"
className="ais-PoweredBy__algoliaLink"
href="url"
target="_blank"
Expand Down

0 comments on commit 2a6cf4f

Please sign in to comment.