-
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(loader): add component tokens (#10979)
**Related Issue:** #7180 #6695 ## Summary Add design tokens for loader component along with e2e tests. New tokens added: `--calcite-loader-progress-color-inline`: Specifies the width and height of the component when set to inline. `--calcite-loader-text-spacing`: Specifies the component's text margin. `--calcite-loader-text-weight`: Specifies the component's font weight. `--calcite-loader-color`: Specifies the component's text color. `--calcite-loader-progress-color`: Specifies the component's progress ring color. `--calcite-loader-track-color`: Specifies the component's track color. Renamed tokens: `--calcite-loader-padding` --> `--calcite-loader-spacing`⚠️ Deprecated tokens: `--calcite-loader-size-inline`
- Loading branch information
Showing
5 changed files
with
206 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const loaderTokens = { | ||
calciteLoaderFontSize: "", | ||
calciteLoaderSize: "", | ||
calciteLoaderSizeInline: "", | ||
calciteLoaderProgressColorInline: "", | ||
calciteLoaderSpacing: "", | ||
calciteLoaderColor: "", | ||
calciteLoaderTrackColor: "", | ||
calciteLoaderProgressColor: "", | ||
calciteLoaderTextSpacing: "", | ||
calciteLoaderTextWeight: "", | ||
}; | ||
|
||
export const loader = html`<calcite-loader class="chromatic-ignore"></calcite-loader>`; |
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