Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chip): add component tokens #10179

Merged
merged 20 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9507e9a
feat(chip): refactor chip for component tokens
alisonailea Aug 27, 2024
c6d5f1b
test(chip): add component tokens to stories
alisonailea Aug 28, 2024
a7ddcc2
fix(chip): remove mouse state tokens
alisonailea Aug 28, 2024
b226cb9
test(chip): update e2e tests
alisonailea Aug 28, 2024
b052c8d
feat(chip-group): add component tokens
alisonailea Aug 28, 2024
865757a
Merge branch 'dev' of github.com:Esri/calcite-design-system into ali-…
alisonailea Aug 28, 2024
3b0ac61
Revert "feat(chip-group): add component tokens"
alisonailea Aug 30, 2024
2332a09
fix(chip): chip element spacing
alisonailea Aug 31, 2024
5fe9b0c
fix(chip): internal variables in selection states
alisonailea Sep 2, 2024
819021c
fix(chip): minor issues with spacing
alisonailea Sep 6, 2024
798c7c4
fix(chip): add chip-icon-color token
alisonailea Sep 10, 2024
f9d0ec0
fix(chip): add select and close token options
alisonailea Sep 10, 2024
b6e6c97
test(chip): simplify theme tests
alisonailea Sep 11, 2024
d9cad9a
test(chip): fix theme setup
alisonailea Sep 11, 2024
be4ac0f
Revert package.json in test(chip): simplify theme tests”
alisonailea Sep 11, 2024
a709177
refactor(chip): restore —calcite-icon-color styles
alisonailea Sep 12, 2024
89fa877
Merge branch 'dev' of github.com:Esri/calcite-design-system into ali-…
alisonailea Sep 12, 2024
a8e74a8
Merge branch 'dev' into astump/7180-chip
alisonailea Sep 13, 2024
9ce58e7
Merge branch 'dev' into astump/7180-chip
alisonailea Sep 16, 2024
fa3f3e7
chore(custom-theme): fix imports
alisonailea Sep 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(chip): add component tokens to stories
  • Loading branch information
alisonailea committed Aug 28, 2024
commit c6d5f1bcacba22bd12e06781cceb317042bad529
4 changes: 3 additions & 1 deletion packages/calcite-components/src/custom-theme.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { accordion } from "./custom-theme/accordion";
import { buttons } from "./custom-theme/button";
import { card, cardTokens } from "./custom-theme/card";
import { checkbox } from "./custom-theme/checkbox";
import { chips } from "./custom-theme/chips";
import { chips, chipTokens } from "./custom-theme/chips";
import { datePicker } from "./custom-theme/date-picker";
import { dropdown } from "./custom-theme/dropdown";
import { icon } from "./custom-theme/icon";
Expand Down Expand Up @@ -118,6 +118,7 @@ export default {
...actionPadTokens,
...actionGroupTokens,
...cardTokens,
...chipTokens,
},
};

Expand All @@ -134,6 +135,7 @@ export const theming_TestOnly = (): string => {
...actionPadTokens,
...actionGroupTokens,
...cardTokens,
...chipTokens,
},
true,
);
Expand Down
16 changes: 14 additions & 2 deletions packages/calcite-components/src/custom-theme/chips.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import { html } from "../../support/formatting";

export const chipTokens = {
calciteChipBackgroundColor: "",
calciteChipBorderColor: "",
calciteChipCornerRadius: "",
calciteChipTextColor: "",
};

export const chips = html`<div>
<calcite-chip>Neutral</calcite-chip>
<calcite-chip kind="inverse">Inverse</calcite-chip>
<calcite-chip kind="brand">Brand</calcite-chip>
</div>
<div>
<calcite-chip appearance="transparent">Neutral</calcite-chip>
<calcite-chip appearance="transparent" kind="inverse">Inverse</calcite-chip>
<calcite-chip appearance="outline-fill">Neutral</calcite-chip>
<calcite-chip appearance="outline-fill" kind="inverse">Inverse</calcite-chip>
<calcite-chip appearance="outline-fill" kind="brand">Brand</calcite-chip>
</div>
<div>
<calcite-chip appearance="outline">Neutral</calcite-chip>
<calcite-chip appearance="outline" kind="inverse">Inverse</calcite-chip>
<calcite-chip appearance="outline" kind="brand">Brand</calcite-chip>
</div>`;