-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avatar): add component tokens (#10280)
**Related Issue:** #7180 #7651 #4900 ## Summary ### Tokens --calcite-avatar-corner-radius: defines the corner radius of the component. --calcite-avatar-color: defines the icon or initial color in the component. --calcite-avatar-background-color: defines the background color of the component.
- Loading branch information
1 parent
725254a
commit f8f881b
Showing
5 changed files
with
105 additions
and
12 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
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,13 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const avatarTokens = { | ||
calciteAvatarCornerRadius: "", | ||
calciteAvatarColor: "", | ||
calciteAvatarBackgroundColor: "", | ||
}; | ||
|
||
export const avatarInitials = html`<calcite-avatar full-name="Urbano Monti"></calcite-avatar>`; | ||
export const avatarIcon = html`<calcite-avatar user-id="umonti"></calcite-avatar>`; | ||
export const avatarThumbnail = html`<calcite-avatar | ||
thumbnail="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII" | ||
></calcite-avatar>`; |