-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(Icon)!: introduce 2.0 component
- add newly updated spritemap - add tests and snapshots - add new icons - update naming scheme for existing icons - use Icon (v2) in V2 components - mark files for proper export
1 parent
9021f5c
commit 4f0e925
Showing
37 changed files
with
3,425 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { Accordion as default } from './Accordion'; | ||
export { Accordion as AccordionV2 } from './Accordion'; | ||
export { Accordion as AccordionV2 } from './Accordion-v2'; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* ------------------------------------*\ | ||
# ICON | ||
\*------------------------------------ */ | ||
|
||
/** | ||
* Small graphic that represents functionality. | ||
*/ | ||
.icon { | ||
display: inline-block; | ||
/** | ||
* Size Priority: | ||
* 1: --icon-size, passed through props | ||
* 2: --icon-size-default, determined by context (text, button, pill) | ||
* default: 1em, same size as surrounding text | ||
* | ||
* Inspired by https://www.youtube.com/watch?v=EDyiaDJJu-4 | ||
*/ | ||
width: var(--icon-size, var(--icon-size-default, 1em)); | ||
height: var(--icon-size, var(--icon-size-default, 1em)); | ||
} | ||
|
||
/** | ||
* A block icon fills 100% of the width of its container | ||
*/ | ||
.icon--full-width { | ||
display: block; | ||
} |
Oops, something went wrong.