This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-hyperlink] Hyperlink ellipses (#4072)
Co-authored-by: BenBoersma <Ben.Boersma@cerner.com>
- Loading branch information
1 parent
3c1d9ad
commit 788f90c
Showing
26 changed files
with
140 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
packages/terra-core-docs/src/terra-dev-site/test/hyperlink/TruncatedHyperlink.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* eslint-disable react/forbid-dom-props */ | ||
import React from 'react'; | ||
import Hyperlink from 'terra-hyperlink'; | ||
|
||
const styles = { | ||
truncated: { | ||
width: '150px', | ||
height: '50px', | ||
borderStyle: 'dashed', | ||
marginBottom: '10px', | ||
}, | ||
}; | ||
|
||
export default () => ( | ||
<div role="main"> | ||
<div style={styles.truncated}> | ||
Basic Test | ||
<Hyperlink id="basic-hyperlink1" href="https://www.cerner.com" text="Default hyperlink that is really long and will get truncated" /> | ||
</div> | ||
<div style={styles.truncated}> | ||
<Hyperlink id="basic-hyperlink2" href="https://www.cerner.com" text="Default hyperlink that is really long and will get truncated" /> | ||
</div> | ||
|
||
<div style={styles.truncated}> | ||
External Test | ||
<Hyperlink id="external-hyperlink1" href="https://www.cerner.com" variant="external" text="External Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
<div style={styles.truncated}> | ||
<Hyperlink id="external-hyperlink2" href="https://www.cerner.com" variant="external" text="External Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
|
||
<div style={styles.truncated}> | ||
Button Test | ||
<Hyperlink id="button-hyperlink1" href="https://www.cerner.com" onClick={() => {}} text="Button Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
<div style={styles.truncated}> | ||
<Hyperlink id="button-hyperlink2" href="https://www.cerner.com" onClick={() => {}} text="Button Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
|
||
<div style={styles.truncated}> | ||
Document Test | ||
<Hyperlink id="document-hyperlink1" href="https://www.cerner.com" onClick={() => {}} variant="document" text="Document Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
<div style={styles.truncated}> | ||
<Hyperlink id="document-hyperlink2" href="https://www.cerner.com" onClick={() => {}} variant="document" text="Document Hyperlink that is really long and will get truncated" /> | ||
</div> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-10 Bytes
(100%)
...__/reference/clinical-lowlight-theme/en/chrome_tiny/hyperlink-spec/external.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ots__/reference/clinical-lowlight-theme/en/chrome_tiny/hyperlink-spec/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-25 Bytes
(100%)
...ts__/reference/clinical-lowlight-theme/en/chrome_tiny/hyperlink-spec/scaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.6 KB
..._/reference/clinical-lowlight-theme/en/chrome_tiny/hyperlink-spec/truncated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-19 Bytes
(99%)
...ots__/reference/clinical-lowlight-theme/en/chrome_tiny/hyperlink-spec/video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14 Bytes
(99%)
...pshots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14 Bytes
(99%)
...shots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/external.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+214 Bytes
(100%)
...reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/hyperlink-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...napshots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37 Bytes
(100%)
...apshots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/scaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.8 KB
...hots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/truncated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...napshots__/reference/orion-fusion-theme/en/chrome_tiny/hyperlink-spec/video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14 Bytes
(99%)
...shots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...hots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/external.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...apshots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-32 Bytes
(100%)
...pshots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/scaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.3 KB
...ots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/truncated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-20 Bytes
(99%)
...apshots__/reference/terra-default-theme/en/chrome_tiny/hyperlink-spec/video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters