Skip to content

Commit 3d2f1c8

Browse files
castastrophepfultoncdransfAziz Ramosjawinn
committed
feat: migration of tokens to spectrum 2
Expanding the existing themes system to support the new S2 mappings. --- Co-authored-by: castastrophe <[email protected]> Co-authored-by: Patrick Fulton <[email protected]> Co-authored-by: Cory Dransfeldt <[email protected]> Co-authored-by: Aziz Ramos <[email protected]> Co-authored-by: Josh Winn <[email protected]> Co-authored-by: Rise Erpelding <[email protected]> Co-authored-by: Marissa Huysentruyt <[email protected]> Co-authored-by: Rajdeep Chandra <[email protected]> Co-authored-by: TarunAdobe <[email protected]> Co-authored-by: Dragan Eror<[email protected]>
1 parent 411ba04 commit 3d2f1c8

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

components/commons/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
},
1616
"exports": {
1717
".": "./index.css",
18-
"./*.css": "./*.css",
1918
"./CHANGELOG.md": "./CHANGELOG.md",
2019
"./README.md": "./README.md",
21-
"./package.json": "./package.json",
22-
"./stories/*": "./stories/*"
20+
"./*.css": "./*.css",
21+
"./package.json": "./package.json"
2322
},
2423
"main": "index.css",
2524
"files": [

components/stepper/dist/metadata.json

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
".spectrum-Stepper.spectrum-Stepper--quiet:not(.is-disabled):focus:hover",
3333
".spectrum-Stepper.spectrum-Stepper--quiet:not(.is-disabled):hover",
3434
".spectrum-Stepper.spectrum-Stepper--sizeL",
35-
".spectrum-Stepper.spectrum-Stepper--sizeM",
3635
".spectrum-Stepper.spectrum-Stepper--sizeS",
3736
".spectrum-Stepper.spectrum-Stepper--sizeXL",
3837
".spectrum-Stepper:before",

components/stepper/index.css

+2-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,8 @@
8282

8383
--spectrum-stepper-animation-duration: var(--mod-stepper-animation-duration, var(--spectrum-animation-duration-100));
8484

85-
&,
86-
&.spectrum-Stepper--sizeM {
87-
--spectrum-stepper-button-width: var(--mod-stepper-button-width, var(--spectrum-in-field-button-width-stacked-medium));
88-
--spectrum-stepper-height: var(--mod-stepper-height, var(--spectrum-component-height-100));
89-
}
85+
--spectrum-stepper-button-width: var(--mod-stepper-button-width, var(--spectrum-in-field-button-width-stacked-medium));
86+
--spectrum-stepper-height: var(--mod-stepper-height, var(--spectrum-component-height-100));
9087

9188
&.spectrum-Stepper--sizeS {
9289
--spectrum-stepper-button-width: var(--mod-stepper-button-width, var(--spectrum-in-field-button-width-stacked-small));

components/stepper/stories/template.js

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const Template = ({
5252
"is-keyboardFocused": isKeyboardFocused,
5353
"is-invalid": isInvalid,
5454
"is-disabled": isDisabled,
55-
"hide-stepper": hideStepper,
5655
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}),
5756
})}
5857
id=${ifDefined(id)}

components/stepper/themes/express.css

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
/** Invalid **/
3939
--spectrum-stepper-border-color-invalid: transparent;
40+
--spectrum-stepper-border-color-hover-invalid: transparent;
4041
--spectrum-stepper-border-color-focus-invalid: transparent;
4142
--spectrum-stepper-border-color-focus-hover-invalid: transparent;
4243
--spectrum-stepper-border-color-keyboard-focus-invalid: transparent;

0 commit comments

Comments
 (0)