-
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(rating): add component tokens (#11150)
**Related Issue:** [#7180](#7180) ## Summary Add `rating` component tokens. `--calcite-rating-spacing`: Specifies the amount of left and right margin spacing between each item. `--calcite-rating-color-hover`: Specifies the component's item color when hovered or selected. `--calcite-rating-color`: Specifies the component's item color. `--calcite-rating-average-color`: Specifies the component's item color when average is set. `--calcite-rating-average-text-color`: Specifies the component's average text color. `--calcite-rating-count-text-color`: Specifies the component's count text color. --------- Co-authored-by: Ali Stump <[email protected]>
- Loading branch information
1 parent
04875f7
commit 6dbb559
Showing
6 changed files
with
101 additions
and
11 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
11 changes: 11 additions & 0 deletions
11
packages/calcite-components/src/components/rating/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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
export const CSS = { | ||
fieldSet: "fieldset", | ||
star: "star", | ||
hovered: "hovered", | ||
selected: "selected", | ||
average: "average", | ||
fraction: "fraction", | ||
numberAverage: "number--average", | ||
numberCount: "number--count", | ||
}; | ||
|
||
export const IDS = { | ||
validationMessage: "validationMessage", | ||
}; |
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,12 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const ratingTokens = { | ||
calciteRatingSpacing: "", | ||
calciteRatingColorHover: "", | ||
calciteRatingColor: "", | ||
calciteRatingAverageColor: "", | ||
calciteRatingAverageTextColor: "", | ||
calciteRatingCountTextColor: "", | ||
}; | ||
|
||
export const rating = html`<calcite-rating></calcite-rating>`; |
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