-
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.
Merge remote-tracking branch 'origin/epic/7180-component-tokens' into…
… benelan/reset-chromatic-tokens-epic * origin/epic/7180-component-tokens: (222 commits) test(text-area): add component token E2E tests (#9729) test(themed): improve pseudoElement pattern test(rating): add theme token tests (#9700) test(block, block-section): add component token E2E tests (#9685) test(button, fab): add component token E2E tests (#9602) test(inline-editable): add token theme tests (#9648) fix(list, list-item, list-item-group): add e2e themed tests (#9616) test(shell-center-row): add token theming tests (#9462) test(shell): add token theming tests (#9458) fix build issues test(combobox, combobox-item-group, combobox-item): add component token E2E tests (#9599) test(radio-button): add component token E2E tests (#9591) test(card, card-group): add component token E2E tests (#9600) test(select): add component token E2E tests (#9593) test(icon): add component token E2E tests (#9595) test(label): add component token E2E tests (#9594) test(switch): add component token E2E tests (#9596) test(graph): add component token E2E tests (#9597) test(dropdown, dropdown-group): add component token E2E tests (#9598) test(tip, tip-group, tip-manager): add component token E2E tests (#9589) ...
- Loading branch information
Showing
268 changed files
with
16,430 additions
and
5,667 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Chromatic - epic/7180-component-tokens" | ||
on: | ||
push: | ||
branches: [epic/7180-component-tokens] | ||
pull_request: | ||
branches: [epic/7180-component-tokens] | ||
types: [labeled, synchronize] | ||
jobs: | ||
run: | ||
if: | | ||
(github.event.action == 'labeled' && github.event.label.name == 'pr ready for visual snapshots') || github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: package.json | ||
- run: npm install | ||
- run: npm --workspace="packages/calcite-design-tokens" run build | ||
- name: Publish to Chromatic | ||
uses: chromaui/action@v1 | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
zip: true | ||
exitOnceUploaded: true | ||
autoAcceptChanges: epic/7180-component-tokens | ||
workingDir: packages/calcite-components | ||
env: | ||
STORYBOOK_SCREENSHOT_TEST_BUILD: true | ||
CHROMATIC_DIFF_THRESHOLD: ${{ secrets.CHROMATIC_DIFF_THRESHOLD }} | ||
skip: | ||
if: contains(github.event.pull_request.labels.*.name, 'skip visual snapshots') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Skip Chromatic | ||
uses: Sibz/github-status-action@v1 | ||
with: | ||
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
context: UI Tests | ||
description: Chromatic run skipped | ||
state: success | ||
sha: ${{github.event.pull_request.head.sha || github.sha}} |
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
37 changes: 23 additions & 14 deletions
37
packages/calcite-components/src/assets/styles/_header.scss
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,17 +1,26 @@ | ||
/* Shared styles for header elements */ | ||
.header { | ||
@apply text-color-2 | ||
fill-color-2 | ||
m-0 | ||
flex | ||
content-between | ||
items-center; | ||
} | ||
@mixin header( | ||
$textColor: "--calcite-color-text-2", | ||
$fontWeight: "--calcite-font-weight-medium", | ||
$spacing: "--calcite-spacing-xxs" | ||
) { | ||
/* Shared styles for header elements */ | ||
.header { | ||
color: var(#{$textColor}, var(--calcite-color-text-2)); | ||
fill: var(#{$textColor}, var(--calcite-color-text-2)); | ||
margin: 0px; | ||
display: flex; | ||
align-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.heading { | ||
@apply m-0 p-0 font-medium; | ||
} | ||
.heading { | ||
margin: 0px; | ||
padding: 0px; | ||
font-weight: var(#{$fontWeight}, var(--calcite-font-weight-medium)); | ||
} | ||
|
||
.header .heading { | ||
@apply flex-auto p-2; | ||
.header .heading { | ||
flex: 1 1 auto; | ||
padding: var(#{$spacing}, var(--calcite-spacing-xxs)); | ||
} | ||
} |
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
14 changes: 0 additions & 14 deletions
14
packages/calcite-components/src/assets/styles/_shadow.scss
This file was deleted.
Oops, something went wrong.
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
26 changes: 0 additions & 26 deletions
26
packages/calcite-components/src/assets/styles/_spacing.scss
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
packages/calcite-components/src/assets/styles/_x-button.scss
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,61 @@ | ||
@mixin xButton( | ||
$textColor: "--calcite-color-text-3", | ||
$backgroundColor: "--calcite-color-foreground-2", | ||
$hoverTextColor: "--calcite-color-text-3", | ||
$hoverBackgroundColor: "--calcite-color-foreground-3", | ||
$activeBorderColor: "--calcite-color-brand", | ||
$borderWidth: "--calcite-border-width-md" | ||
) { | ||
.x-button { | ||
appearance: none; | ||
align-content: center; | ||
cursor: pointer; | ||
display: flex; | ||
outline-color: transparent; | ||
align-items: center; | ||
justify-content: center; | ||
margin: 0px; | ||
align-self: center; | ||
color: var(#{$textColor}, var(--calcite-color-text-3)); | ||
transition: | ||
color, | ||
background-color, | ||
border-color var(--calcite-animation-timing) ease-in-out 0s, | ||
outline 0s, | ||
outline-offset 0s; | ||
border-width: var(#{$borderWidth}, var(--calcite-border-width-md)); | ||
border-radius: 50%; | ||
border-color: transparent; | ||
background-color: var(#{$backgroundColor}, var(--calcite-color-foreground-2)); | ||
|
||
&:active, | ||
&:hover { | ||
color: var(#{$hoverTextColor}); | ||
background-color: var(#{$hoverBackgroundColor}, var(--calcite-color-foreground-3)); | ||
} | ||
|
||
&:active { | ||
border-style: solid; | ||
border-color: var(#{$activeBorderColor}, var(--calcite-color-brand)); | ||
} | ||
|
||
& calcite-icon { | ||
color: inherit; | ||
} | ||
} | ||
|
||
:host([scale="s"]) .x-button { | ||
inline-size: var(--calcite-spacing-lg); | ||
block-size: var(--calcite-spacing-lg); | ||
} | ||
|
||
:host([scale="m"]) .x-button { | ||
inline-size: var(--calcite-size-xxl); | ||
block-size: var(--calcite-size-xxl); | ||
} | ||
|
||
:host([scale="l"]) .x-button { | ||
inline-size: var(--calcite-size-xxxl); | ||
block-size: var(--calcite-size-xxxl); | ||
} | ||
} |
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
Oops, something went wrong.