-
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(progress): add component tokens (#10267)
**Related Issue:** #7180 ## Summary Add `progress` component tokens. `--calcite-progress-background-color`: Defines the background color of the component. `--calcite-progress-fill-color`: Defines the background color of the progress bar. `--calcite-progress-text-color`: Defines the text color of the component.
- Loading branch information
Showing
7 changed files
with
72 additions
and
21 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
5 changes: 5 additions & 0 deletions
5
packages/calcite-components/src/components/progress/resources.ts
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,5 @@ | ||
export const CSS = { | ||
track: "track", | ||
bar: "bar", | ||
text: "text", | ||
}; |
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,9 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const progressTokens = { | ||
calciteProgressBackgroundColor: "", | ||
calciteProgressFillColor: "", | ||
calciteProgressTextColor: "", | ||
}; | ||
|
||
export const progress = html`<calcite-progress text="optional text" type="determinate" value="0.5"></calcite-progress>`; |
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,6 +1,8 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const calciteSwitch = html`<label> | ||
<calcite-switch scale="m" checked> </calcite-switch> | ||
Red switch scale medium | ||
</label>`; | ||
export const calciteSwitch = html` | ||
<calcite-label layout="inline"> | ||
<calcite-switch scale="m" checked></calcite-switch> | ||
Red switch scale medium | ||
</calcite-label> | ||
`; |