-
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(button): use rh-icon * fix(button): narrow type of icon and set * fix(footer): document accepted icons in social links * chore: max out netlify's card * perf(button): lazy-load icon * fix(button): icon layouts * fix(button): fancy icon layouts, etc * docs(button): icon usage * perf(button): shadow classes
- Loading branch information
1 parent
0440570
commit caa1abf
Showing
7 changed files
with
122 additions
and
95 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,9 @@ | ||
--- | ||
"@rhds/elements": minor | ||
--- | ||
`<rh-button>`: add `icon-set` attribute, corresponding to `<rh-icon set="...">` | ||
|
||
```html | ||
<rh-button icon="giftbox" | ||
icon-set="standard">Donate</rh-button> | ||
``` |
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,22 @@ | ||
<section id="button-with-icon"> | ||
<rh-button icon="error-fill" danger>Danger</rh-button> | ||
<rh-button icon="information-fill">Primary</rh-button> | ||
<rh-button icon="external-link" icon-set="microns" variant="link">Link</rh-button> | ||
<rh-button icon="bug-fill" variant="secondary">Secondary</rh-button> | ||
<rh-button icon="bug-fill" variant="secondary" danger>Secondary Danger</rh-button> | ||
<rh-button icon="close" icon-set="microns" variant="tertiary">Tertiary</rh-button> | ||
<rh-button icon="close" icon-set="microns" disabled>Disabled</rh-button> | ||
</section> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-button/rh-button.js'; | ||
</script> | ||
|
||
<style> | ||
#button-with-icon { | ||
display: flex; | ||
align-items: start; | ||
flex-wrap: wrap; | ||
gap: var(--rh-space-lg, 16px); | ||
} | ||
</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
Oops, something went wrong.