Skip to content

Commit

Permalink
Updated link Validation section (#270)
Browse files Browse the repository at this point in the history
* Updated link Validation section

Signed-off-by: AbhishekReddy1127 <[email protected]>

* Updated the incoorect text

Signed-off-by: AbhishekReddy1127 <[email protected]>

* Updated the links

Signed-off-by: AbhishekReddy1127 <[email protected]>

---------

Signed-off-by: AbhishekReddy1127 <[email protected]>
  • Loading branch information
AbhishekReddy1127 authored Feb 20, 2023
1 parent 710eb99 commit 773e661
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src-docs/src/views/link/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export default () => (
<OuiText>
<p>
Open the{' '}
<OuiLink href="http://www.elastic.co" target="_blank">
Elastic website
<OuiLink href="https://Opensearch.org" target="_blank">
OpenSearch website
</OuiLink>{' '}
in a new tab. Setting <OuiCode>target=&ldquo;_blank&rdquo;</OuiCode> also
defaults to <OuiCode>{'external={true}'}</OuiCode>.
</p>
<p>
This{' '}
<OuiLink href="http://www.elastic.co" external>
<OuiLink href="https://Opensearch.org" external>
link
</OuiLink>{' '}
has the <OuiCode>external</OuiCode> prop set to true.
Expand All @@ -37,7 +37,7 @@ export default () => (
<p>
Here is an example of a{' '}
<OuiLink
href="https://github.com/elastic/eui"
href="https://github.com/opensearch-project/oui"
onClick={(e) => {
e.preventDefault();
}}>
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/link/link_validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import React from 'react';
import { OuiLink } from '../../../../src/components';

const urls = [
'https://elastic.co',
'//elastic.co',
'https://opensearch.org',
'//opensearch.org',
'relative/url/somewhere',
'http://username:[email protected]/',
// eslint-disable-next-line no-script-url
Expand Down

0 comments on commit 773e661

Please sign in to comment.