Skip to content

Commit ff7f213

Browse files
committed
fix(field-group,styles): use latest CSS
1 parent ab0fc6e commit ff7f213

File tree

5 files changed

+16
-24
lines changed

5 files changed

+16
-24
lines changed

.changeset/stale-candies-camp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
'@spectrum-web-components/close-button': patch
33
'@spectrum-web-components/dropzone': patch
4+
'@spectrum-web-components/field-group': patch
45
'@spectrum-web-components/illustrated-message': patch
56
'@spectrum-web-components/menu': patch
67
'@spectrum-web-components/status-light': patch

packages/field-group/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@spectrum-web-components/help-text": "1.5.0"
6969
},
7070
"devDependencies": {
71-
"@spectrum-css/fieldgroup": "6.0.1"
71+
"@spectrum-css/fieldgroup": "7.1.0"
7272
},
7373
"types": "./src/index.d.ts",
7474
"customElements": "custom-elements.json",

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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ governing permissions and limitations under the License.
1212

1313
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
1414
.group {
15-
--spectrum-fieldgroup-margin: var(--spectrum-spacing-300);
1615
flex-flow: column wrap;
1716
display: flex;
1817
}
@@ -39,7 +38,7 @@ governing permissions and limitations under the License.
3938
}
4039

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

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

yarn.lock

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7298,22 +7298,24 @@ __metadata:
72987298
languageName: node
72997299
linkType: hard
73007300

7301-
"@spectrum-css/fieldgroup@npm:6.0.1":
7302-
version: 6.0.1
7303-
resolution: "@spectrum-css/fieldgroup@npm:6.0.1"
7301+
"@spectrum-css/fieldgroup@npm:7.1.0":
7302+
version: 7.1.0
7303+
resolution: "@spectrum-css/fieldgroup@npm:7.1.0"
73047304
peerDependencies:
7305-
"@spectrum-css/checkbox": ">=9"
7306-
"@spectrum-css/helptext": ">=5"
7307-
"@spectrum-css/radio": ">=9"
7308-
"@spectrum-css/tokens": ">=14 || >=15"
7305+
"@spectrum-css/checkbox": ">=10.0.0 <11.0.0"
7306+
"@spectrum-css/helptext": ">=7.0.0 <8.0.0"
7307+
"@spectrum-css/radio": ">=10.0.0 <11.0.0"
7308+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
73097309
peerDependenciesMeta:
73107310
"@spectrum-css/checkbox":
73117311
optional: true
73127312
"@spectrum-css/helptext":
73137313
optional: true
73147314
"@spectrum-css/radio":
73157315
optional: true
7316-
checksum: 10c0/8cd88744e799383ccbe772956447962ed5d9b44f26d742ca3cb66e6f5311dc4477990f1d5b2475fe696d32c042377d80cd8b4107de74b2a74d7790511c51327c
7316+
"@spectrum-css/tokens":
7317+
optional: true
7318+
checksum: 10c0/bb3b1fef4ddb1fe7dafc101bf72367c61cc1bcf050be98f0e55013f86c3f96b167a0b281d9c55b167616a6c16dc57b3c7fa2bd2df8c0bd5524ca741cf94e2667
73177319
languageName: node
73187320
linkType: hard
73197321

@@ -8434,7 +8436,7 @@ __metadata:
84348436
version: 0.0.0-use.local
84358437
resolution: "@spectrum-web-components/field-group@workspace:packages/field-group"
84368438
dependencies:
8437-
"@spectrum-css/fieldgroup": "npm:6.0.1"
8439+
"@spectrum-css/fieldgroup": "npm:7.1.0"
84388440
"@spectrum-web-components/base": "npm:1.5.0"
84398441
"@spectrum-web-components/help-text": "npm:1.5.0"
84408442
languageName: unknown

0 commit comments

Comments
 (0)