You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ui-form-field/src/FormFieldLayout/styles.ts
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,8 @@ const generateStyle = (
102
102
fontWeight: componentTheme.fontWeight,
103
103
fontSize: componentTheme.fontSize,
104
104
lineHeight: componentTheme.lineHeight,
105
-
margin: '0 0 0.75rem 0',
106
105
...(isInlineLayout&&{
106
+
margin: '0',
107
107
// when inline add a small padding between the label and the control
108
108
paddingRight: componentTheme.inlinePadding,
109
109
// and use the horizontal alignment prop
@@ -150,6 +150,7 @@ const generateStyle = (
150
150
)
151
151
},
152
152
columnGap: '0.375rem',
153
+
rowGap: '0.75rem',
153
154
width: '100%',
154
155
...(inline&&{
155
156
display: 'inline-grid',
@@ -158,20 +159,16 @@ const generateStyle = (
158
159
},
159
160
formFieldLabel: {
160
161
label: 'formFieldLayout__label',
161
-
...(hasVisibleLabel&&{
162
-
...labelStyles,
163
-
// NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
164
-
'&:is(label)': labelStyles,
165
-
'&:-webkit-any(label)': labelStyles
166
-
})
162
+
...labelStyles,
163
+
// NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
164
+
'&:is(label)': labelStyles,
165
+
'&:-webkit-any(label)': labelStyles
167
166
},
168
167
formFieldChildren: {
169
168
label: 'formFieldLayout__children',
170
169
gridArea: 'controls',
171
170
// add a small margin between the message and the controls
0 commit comments