-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
401 changed files
with
11,225 additions
and
254 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
172 changes: 172 additions & 0 deletions
172
assets/packages/@rhds/elements/elements/rh-navigation-secondary/test/fixtures.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,45 @@ | ||
# Tile | ||
A form of selection that can be used in place of a link, checkbox, or radio button. | ||
|
||
## Usage | ||
If the tile is not checkable, a link slotted in the image or headline slots will become the link when the card is clicked. Be sure to include alt text for a slotted image especially if it is wrapped in a link. | ||
|
||
```html | ||
<rh-tile> | ||
<img slot="image" src="//fakeimg.pl/296x50" alt="296 X 50 placeholder image"> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#top">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
``` | ||
|
||
# Tile Group | ||
A group of `<rh-tile>` elements which handles radio selection. | ||
## Usage | ||
A tile group should include more than one tile in its slot. | ||
|
||
```html | ||
<rh-tile-group radio> | ||
<rh-tile checked> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#top">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<rh-tile> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#top">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<rh-tile> | ||
<div slot="title">Title</div> | ||
<h2 slot="headline"><a href="#top">Link</a></h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
</rh-tile-group> | ||
``` |
25 changes: 25 additions & 0 deletions
25
assets/packages/@rhds/elements/elements/rh-tile/demo/checkable.html
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,25 @@ | ||
<link rel="stylesheet" href="demo.css"> | ||
<link rel="stylesheet" href="../rh-tile-lightdom.css"> | ||
<script type="module" src="rh-tile.js"></script> | ||
|
||
<div id="demo-container"> | ||
<h2>Checkboxes</h2> | ||
|
||
<rh-tile checkable> | ||
<h2 slot="headline">Headline</h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<rh-tile checkable checked> | ||
<h2 slot="headline">Headline</h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
|
||
<rh-tile checkable bleed disabled> | ||
<h2 slot="headline">Headline</h2> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
<div slot="footer">Suspendisse eu turpis elementum</div> | ||
</rh-tile> | ||
</div> |
Oops, something went wrong.