-
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.
fix(card): adding thumbnail slot, header styling for image / header c…
…ombo (#1207) * fix(card): adding thumbnail slot, header styles * feat(card): remove thumbnail slot, header slotting * fix(card): adding gap to rh-card css, demo css * chore: adding changeset
- Loading branch information
1 parent
5e35492
commit 39e76fc
Showing
4 changed files
with
57 additions
and
5 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,21 @@ | ||
--- | ||
"@rhds/elements": minor | ||
--- | ||
|
||
`rh-card`: `header` slot now displays items vertically instead of stacked, allowing for more than one item to display in the header. | ||
|
||
Example: | ||
|
||
```html | ||
<rh-card> | ||
<img slot="header" src="kitten-400x250.jpeg"></img> | ||
<h2 slot="header">Headline, sm</h2> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Nullam eleifend elit sed est egestas, a sollicitudin mauris | ||
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam | ||
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.</p> | ||
<rh-cta priority="primary" slot="footer"> | ||
<a href="#">Call to action</a> | ||
</rh-cta> | ||
</rh-card> | ||
``` |
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