Skip to content

Commit 46bda06

Browse files
authored
feat(input-address): add new comp level styling hooks (#5065)
1 parent 13467d1 commit 46bda06

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

ui/components/form-layout/RELEASENOTES.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,21 @@
44

55
<!-- ## [Unreleased] -->
66

7-
<!-- ## [VERSION] -->
7+
## 2.19
8+
9+
### Added
10+
11+
- Spacing Styling Hooks for Compound `Form`
12+
- `--slds-c-form-compound-spacing-block-start` to customize `margin top`
13+
- `--slds-c-form-compound-spacing-block-end` to customize `margin bottom`
14+
- `--slds-c-form-compound-spacing-block` to customize `margin top & bottom`
15+
- `--slds-c-form-compound-spacing-inline-start` to customize `margin left`
16+
- `--slds-c-form-compound-spacing-inline-end` to customize `margin right`
17+
- `--slds-c-form-compound-spacing-inline` to customize `margin left & right`
18+
- Spacing Styling Hooks for `Form Element` Row
19+
- `--slds-c-form-row-spacing-block-start` to customize `margin top`
20+
- `--slds-c-form-row-spacing-block-end` to customize `margin bottom`
21+
- `--slds-c-form-row-spacing-block` to customize `margin top & bottom`
22+
- `--slds-c-form-row-spacing-inline-start` to customize `margin left`
23+
- `--slds-c-form-row-spacing-inline-end` to customize `margin right`
24+
- `--slds-c-form-row-spacing-inline` to customize `margin left & right`

ui/components/form-layout/compound/_index.scss

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,35 @@
1515
.slds-form--compound {
1616
width: 100%;
1717

18+
> .slds-form-element {
19+
margin-top:
20+
var(--slds-c-form-compound-spacing-block-start,
21+
var(--slds-c-form-compound-spacing-block, 0));
22+
margin-bottom:
23+
var(--slds-c-form-compound-spacing-block-end,
24+
var(--slds-c-form-compound-spacing-block, 0));
25+
margin-left:
26+
var(--slds-c-form-compound-spacing-inline-start,
27+
var(--slds-c-form-compound-spacing-inline, 0));
28+
margin-right:
29+
var(--slds-c-form-compound-spacing-inline-end,
30+
var(--slds-c-form-compound-spacing-inline, 0));
31+
}
32+
1833
.slds-form-element__row {
1934
display: flex;
20-
margin-bottom: $spacing-xx-small;
35+
margin-top:
36+
var(--slds-c-form-row-spacing-block-start,
37+
var(--slds-c-form-row-spacing-block, 0));
38+
margin-bottom:
39+
var(--slds-c-form-row-spacing-block-end,
40+
var(--slds-c-form-row-spacing-block, #{$spacing-xx-small}));
41+
margin-left:
42+
var(--slds-c-form-row-spacing-inline-start,
43+
var(--slds-c-form-row-spacing-inline, 0));
44+
margin-right:
45+
var(--slds-c-form-row-spacing-inline-end,
46+
var(--slds-c-form-row-spacing-inline, 0));
2147

2248
+ .slds-form-element__row {
2349
clear: both;

0 commit comments

Comments
 (0)