-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(tile): private link Closes #1470 * fix(tile): private icon * feat(tile): link="external"
- Loading branch information
1 parent
caa1abf
commit e9ceed3
Showing
4 changed files
with
67 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@rhds/elements": minor | ||
--- | ||
`<rh-tile>`: add `link="private"` attribute, indicating that the link is | ||
private, which changes the link icon from an arrow to a padlock, and | ||
`link="external"` attribute, which changes the link icon to the "external link" | ||
icon |
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,30 @@ | ||
<rh-tile link="private" | ||
icon="bank-safe" | ||
icon-set="standard"> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#super-secret-section">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<rh-tile link="external" | ||
icon="globe-abstract" | ||
icon-set="standard"> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#super-public-section">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-tile/rh-tile.js'; | ||
</script> | ||
|
||
<link rel="stylesheet" href="../rh-tile-lightdom.css"> | ||
|
||
<style> | ||
rh-tile { | ||
width: 375px; | ||
margin: var(--rh-space-md, 8px); | ||
} | ||
</style> |
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