Skip to content

Commit

Permalink
Changed the references of elastic.co to opensearch.org and changed To…
Browse files Browse the repository at this point in the history
…ggle button name and its example text (#219)

Signed-off-by: AbhishekReddy1127 <[email protected]>
  • Loading branch information
AbhishekReddy1127 authored Feb 13, 2023
1 parent eaf3aba commit 62f372a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions src-docs/src/views/button/button_as_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ export default () => (
<Fragment>
<OuiFlexGroup gutterSize="s" alignItems="center">
<OuiFlexItem grow={false}>
<OuiButton href="http://www.elastic.co">Link to elastic.co</OuiButton>
<OuiButton href="https://opensearch.org/">
Link to OpenSearch.org
</OuiButton>
</OuiFlexItem>

<OuiFlexItem grow={false}>
<OuiButtonEmpty href="http://www.elastic.co">
Link to elastic.co
<OuiButtonEmpty href="https://opensearch.org/">
Link to OpenSearch.org
</OuiButtonEmpty>
</OuiFlexItem>

<OuiFlexItem grow={false}>
<OuiButtonIcon
href="http://www.elastic.co"
href="https://opensearch.org/"
iconType="link"
aria-label="This is a link"
/>
Expand All @@ -43,20 +45,20 @@ export default () => (

<OuiFlexGroup gutterSize="s" alignItems="center">
<OuiFlexItem grow={false}>
<OuiButton href="http://www.elastic.co" isDisabled>
<OuiButton href="https://opensearch.org/" isDisabled>
Disabled link
</OuiButton>
</OuiFlexItem>

<OuiFlexItem grow={false}>
<OuiButtonEmpty href="http://www.elastic.co" isDisabled>
<OuiButtonEmpty href="https://opensearch.org/" isDisabled>
Disabled empty link
</OuiButtonEmpty>
</OuiFlexItem>

<OuiFlexItem grow={false}>
<OuiButtonIcon
href="http://www.elastic.co"
href="https://opensearch.org/"
iconType="link"
aria-label="This is a link"
isDisabled
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/button/button_ghost.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default () => {
isSelected={toggle0On}
fill={toggle0On}
onClick={onToggle0Change}>
Toggle me
Toggle
</OuiButton>
</OuiFlexItem>
</OuiFlexGroup>
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/button/button_toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default () => {
onClick={() => {
setToggle0On((isOn) => !isOn);
}}>
{toggle0On ? 'Hey there good lookin' : 'Toggle me'}
{toggle0On ? 'Tada!' : 'Toggle'}
</OuiButton>
&emsp;
<OuiButtonIcon
Expand All @@ -57,7 +57,7 @@ export default () => {
onClick={() => {
setToggle2On((isOn) => !isOn);
}}>
Toggle me
Toggle
</OuiButton>
&emsp;
<OuiButtonIcon
Expand Down

0 comments on commit 62f372a

Please sign in to comment.