Skip to content

Commit

Permalink
fix(info): use externalDocsUrl check to render Link (#6997)
Browse files Browse the repository at this point in the history
* fixes screen reader accessibility issue
  • Loading branch information
tim-lai committed Feb 24, 2021
1 parent 482dea8 commit b7d3d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/info.jsx
Expand Up @@ -148,7 +148,7 @@ export default class Info extends React.Component {

{contact && contact.size ? <Contact getComponent={getComponent} data={ contact } selectedServer={selectedServer} url={url} /> : null }
{license && license.size ? <License getComponent={getComponent} license={ license } selectedServer={selectedServer} url={url}/> : null }
{ externalDocs ?
{ externalDocsUrl ?
<Link className="info__extdocs" target="_blank" href={sanitizeUrl(externalDocsUrl)}>{externalDocsDescription || externalDocsUrl}</Link>
: null }

Expand Down

0 comments on commit b7d3d1c

Please sign in to comment.