Skip to content

Commit 19d9fb8

Browse files
committed
fix(field-group,styles): use latest CSS
1 parent 0120580 commit 19d9fb8

File tree

9 files changed

+16
-35
lines changed

9 files changed

+16
-35
lines changed

.changeset/brave-crews-win.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'@spectrum-web-components/color-slider': patch
1414
'@spectrum-web-components/color-wheel': patch
1515
'@spectrum-web-components/divider': patch
16+
'@spectrum-web-components/field-group': patch
1617
'@spectrum-web-components/field-label': patch
1718
'@spectrum-web-components/help-text': patch
1819
'@spectrum-web-components/illustrated-message': patch

packages/field-group/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@spectrum-web-components/help-text": "1.4.0"
6363
},
6464
"devDependencies": {
65-
"@spectrum-css/fieldgroup": "6.0.1"
65+
"@spectrum-css/fieldgroup": "7.1.0"
6666
},
6767
"types": "./src/index.d.ts",
6868
"customElements": "custom-elements.json",

packages/field-group/src/field-group-overrides.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ governing permissions and limitations under the License.
1111
*/
1212

1313
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
14-
:host {
15-
--spectrum-fieldgroup-margin: var(--system-field-group-margin);
16-
--spectrum-fieldgroup-readonly-delimiter: var(
17-
--system-field-group-readonly-delimiter
18-
);
19-
}

packages/field-group/src/field-group.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,8 @@ governing permissions and limitations under the License.
1111
*/
1212

1313
@import url('./spectrum-field-group.css');
14-
@import url('./field-group-overrides.css');
1514

16-
:host([horizontal][dir='rtl']) slot:not([name])::slotted(*:not(:last-child)),
17-
:host([dir='rtl']:not([vertical]))
18-
slot:not([name])::slotted(*:not(:last-child)) {
15+
:host(:not([vertical])) .group {
1916
/* .spectrum-FieldGroup--horizontal .spectrum-FieldGroup-item+.spectrum-FieldGroup-item */
20-
margin: 0 0 0 var(--spectrum-fieldgroup-margin);
21-
}
22-
23-
:host([horizontal][dir='ltr']) slot:not([name])::slotted(*:not(:last-child)),
24-
:host([dir='ltr']:not([vertical]))
25-
slot:not([name])::slotted(*:not(:last-child)) {
26-
/* .spectrum-FieldGroup--horizontal .spectrum-FieldGroup-item+.spectrum-FieldGroup-item */
27-
margin: 0 var(--spectrum-fieldgroup-margin) 0 0;
17+
gap: var(--spectrum-spacing-300);
2818
}

packages/field-group/src/spectrum-field-group.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ governing permissions and limitations under the License.
3838
}
3939

4040
:host([horizontal]) .group slot:not([name])::slotted(:not(:last-child)) {
41-
margin-inline-end: var(--spectrum-fieldgroup-margin);
41+
margin-inline-end: var(--spectrum-spacing-300);
4242
}
4343

4444
:host([horizontal]) .group .spectrum-HelpText {

tools/styles/tokens-v2/system-theme-bridge.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,6 @@
813813
--system-drop-zone-heading-font-size-cjk: var(
814814
--spectrum-drop-zone-cjk-title-size
815815
);
816-
--system-field-group-margin: var(--spectrum-spacing-300);
817-
--system-field-group-readonly-delimiter: ',';
818816
--system-infield-button-border-width: var(--spectrum-border-width-100);
819817
--system-infield-button-border-color: inherit;
820818
--system-infield-button-border-radius: var(--spectrum-corner-radius-100);

tools/styles/tokens/express/system-theme-bridge.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,6 @@
829829
--system-drop-zone-heading-font-size-cjk: var(
830830
--spectrum-drop-zone-cjk-title-size
831831
);
832-
--system-field-group-margin: var(--spectrum-spacing-300);
833-
--system-field-group-readonly-delimiter: ',';
834832
--system-infield-button-border-width: 0;
835833
--system-infield-button-border-color: transparent;
836834
--system-infield-button-border-radius: var(--spectrum-corner-radius-75);

tools/styles/tokens/spectrum/system-theme-bridge.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,6 @@
835835
--system-drop-zone-heading-font-size-cjk: var(
836836
--spectrum-drop-zone-cjk-title-size
837837
);
838-
--system-field-group-margin: var(--spectrum-spacing-300);
839-
--system-field-group-readonly-delimiter: ',';
840838
--system-infield-button-border-width: var(--spectrum-border-width-100);
841839
--system-infield-button-border-color: inherit;
842840
--system-infield-button-border-radius: var(--spectrum-corner-radius-100);

yarn.lock

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7268,22 +7268,24 @@ __metadata:
72687268
languageName: node
72697269
linkType: hard
72707270

7271-
"@spectrum-css/fieldgroup@npm:6.0.1":
7272-
version: 6.0.1
7273-
resolution: "@spectrum-css/fieldgroup@npm:6.0.1"
7271+
"@spectrum-css/fieldgroup@npm:7.1.0":
7272+
version: 7.1.0
7273+
resolution: "@spectrum-css/fieldgroup@npm:7.1.0"
72747274
peerDependencies:
7275-
"@spectrum-css/checkbox": ">=9"
7276-
"@spectrum-css/helptext": ">=5"
7277-
"@spectrum-css/radio": ">=9"
7278-
"@spectrum-css/tokens": ">=14 || >=15"
7275+
"@spectrum-css/checkbox": ">=10.0.0 <11.0.0"
7276+
"@spectrum-css/helptext": ">=7.0.0 <8.0.0"
7277+
"@spectrum-css/radio": ">=10.0.0 <11.0.0"
7278+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
72797279
peerDependenciesMeta:
72807280
"@spectrum-css/checkbox":
72817281
optional: true
72827282
"@spectrum-css/helptext":
72837283
optional: true
72847284
"@spectrum-css/radio":
72857285
optional: true
7286-
checksum: 10c0/8cd88744e799383ccbe772956447962ed5d9b44f26d742ca3cb66e6f5311dc4477990f1d5b2475fe696d32c042377d80cd8b4107de74b2a74d7790511c51327c
7286+
"@spectrum-css/tokens":
7287+
optional: true
7288+
checksum: 10c0/bb3b1fef4ddb1fe7dafc101bf72367c61cc1bcf050be98f0e55013f86c3f96b167a0b281d9c55b167616a6c16dc57b3c7fa2bd2df8c0bd5524ca741cf94e2667
72877289
languageName: node
72887290
linkType: hard
72897291

@@ -8318,7 +8320,7 @@ __metadata:
83188320
version: 0.0.0-use.local
83198321
resolution: "@spectrum-web-components/field-group@workspace:packages/field-group"
83208322
dependencies:
8321-
"@spectrum-css/fieldgroup": "npm:6.0.1"
8323+
"@spectrum-css/fieldgroup": "npm:7.1.0"
83228324
"@spectrum-web-components/base": "npm:1.4.0"
83238325
"@spectrum-web-components/help-text": "npm:1.4.0"
83248326
languageName: unknown

0 commit comments

Comments
 (0)