Skip to content

Commit 2b42157

Browse files
committed
fix(field-group,styles): use latest CSS
1 parent b2b9492 commit 2b42157

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.changeset/cruel-hotels-accept.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@spectrum-web-components/field-group': patch
3+
'@spectrum-web-components/styles': patch
4+
---
5+
6+
Remove unnecessary system theme references to reduce complexity for components that don't need the additional mapping layer.

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +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])) slot:not([name])::slotted(*:not(:last-child)) {
15+
:host(:not([vertical])) .group {
1816
/* .spectrum-FieldGroup--horizontal .spectrum-FieldGroup-item+.spectrum-FieldGroup-item */
19-
margin: 0 0 0 var(--spectrum-fieldgroup-margin);
20-
}
21-
22-
:host([horizontal][dir="ltr"]) slot:not([name])::slotted(*:not(:last-child)),
23-
:host([dir="ltr"]:not([vertical])) slot:not([name])::slotted(*:not(:last-child)) {
24-
/* .spectrum-FieldGroup--horizontal .spectrum-FieldGroup-item+.spectrum-FieldGroup-item */
25-
margin: 0 var(--spectrum-fieldgroup-margin) 0 0;
17+
gap: var(--spectrum-spacing-300);
2618
}

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 {

0 commit comments

Comments
 (0)