@instructure/ui-form-field 11.7.11-snapshot-16 → 11.7.11-snapshot-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,12 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [11.7.11-snapshot-16](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-16) (2026-11-11)
7
-
8
- **Note:** Version bump only for package @instructure/ui-form-field
9
-
6
+ ## [11.7.11-snapshot-18](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-18) (2026-11-13)
10
7
 
8
+ ### Bug Fixes
11
9
 
10
+ * **ui-form-field:** fix padding for inline layout in form componets ([#2778](https://github.com/instructure/instructure-ui/issues/2778)) ([5aa80c0](https://github.com/instructure/instructure-ui/commit/5aa80c0d8d2796e8a6deff08c8f2b240aeb365ab))
12
11
 
13
12
 
14
13
  ## [11.7.10](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.10) (2026-10-14)
@@ -94,13 +94,16 @@ const generateStyle = (componentTheme, props, styleProps) => {
94
94
  fontWeight: componentTheme.fontWeight,
95
95
  fontSize: componentTheme.fontSize,
96
96
  lineHeight: componentTheme.lineHeight,
97
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem',
97
98
  ...(isInlineLayout && {
98
99
  margin: '0',
99
100
  // when inline add a small padding between the label and the control
100
101
  paddingRight: componentTheme.inlinePadding,
101
102
  // and use the horizontal alignment prop
102
103
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]: {
103
- textAlign: labelAlign
104
+ textAlign: labelAlign,
105
+ // label and control are in the same row, no need for padding
106
+ paddingBottom: '0'
104
107
  }
105
108
  })
106
109
  };
@@ -147,8 +150,7 @@ const generateStyle = (componentTheme, props, styleProps) => {
147
150
  ...labelStyles,
148
151
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
149
152
  '&:is(label)': labelStyles,
150
- '&:-webkit-any(label)': labelStyles,
151
- paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
153
+ '&:-webkit-any(label)': labelStyles
152
154
  },
153
155
  formFieldChildren: {
154
156
  label: 'formFieldLayout__children',
@@ -97,7 +97,9 @@ const generateStyle = (componentTheme, params, sharedTokens) => {
97
97
  paddingRight: componentTheme.gapPrimitives,
98
98
  // and use the horizontal alignment prop
99
99
  [`@media screen and (width >= ${sharedTokens.breakpoints.md})`]: {
100
- textAlign: labelAlign
100
+ textAlign: labelAlign,
101
+ // label and control share a row here, so bottom padding would offset the label from the control's center
102
+ paddingBottom: '0'
101
103
  }
102
104
  })
103
105
  };
@@ -100,13 +100,16 @@ const generateStyle = (componentTheme, props, styleProps) => {
100
100
  fontWeight: componentTheme.fontWeight,
101
101
  fontSize: componentTheme.fontSize,
102
102
  lineHeight: componentTheme.lineHeight,
103
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem',
103
104
  ...(isInlineLayout && {
104
105
  margin: '0',
105
106
  // when inline add a small padding between the label and the control
106
107
  paddingRight: componentTheme.inlinePadding,
107
108
  // and use the horizontal alignment prop
108
109
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]: {
109
- textAlign: labelAlign
110
+ textAlign: labelAlign,
111
+ // label and control are in the same row, no need for padding
112
+ paddingBottom: '0'
110
113
  }
111
114
  })
112
115
  };
@@ -153,8 +156,7 @@ const generateStyle = (componentTheme, props, styleProps) => {
153
156
  ...labelStyles,
154
157
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
155
158
  '&:is(label)': labelStyles,
156
- '&:-webkit-any(label)': labelStyles,
157
- paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
159
+ '&:-webkit-any(label)': labelStyles
158
160
  },
159
161
  formFieldChildren: {
160
162
  label: 'formFieldLayout__children',
@@ -103,7 +103,9 @@ const generateStyle = (componentTheme, params, sharedTokens) => {
103
103
  paddingRight: componentTheme.gapPrimitives,
104
104
  // and use the horizontal alignment prop
105
105
  [`@media screen and (width >= ${sharedTokens.breakpoints.md})`]: {
106
- textAlign: labelAlign
106
+ textAlign: labelAlign,
107
+ // label and control share a row here, so bottom padding would offset the label from the control's center
108
+ paddingBottom: '0'
107
109
  }
108
110
  })
109
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "11.7.11-snapshot-16",
3
+ "version": "11.7.11-snapshot-18",
4
4
  "description": "Form layout components.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,21 +15,21 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/console": "11.7.11-snapshot-16",
19
- "@instructure/emotion": "11.7.11-snapshot-16",
20
- "@instructure/shared-types": "11.7.11-snapshot-16",
21
- "@instructure/ui-a11y-content": "11.7.11-snapshot-16",
22
- "@instructure/ui-a11y-utils": "11.7.11-snapshot-16",
23
- "@instructure/ui-grid": "11.7.11-snapshot-16",
24
- "@instructure/ui-icons": "11.7.11-snapshot-16",
25
- "@instructure/ui-react-utils": "11.7.11-snapshot-16",
26
- "@instructure/ui-themes": "11.7.11-snapshot-16",
27
- "@instructure/ui-utils": "11.7.11-snapshot-16",
28
- "@instructure/uid": "11.7.11-snapshot-16"
18
+ "@instructure/console": "11.7.11-snapshot-18",
19
+ "@instructure/emotion": "11.7.11-snapshot-18",
20
+ "@instructure/shared-types": "11.7.11-snapshot-18",
21
+ "@instructure/ui-a11y-content": "11.7.11-snapshot-18",
22
+ "@instructure/ui-a11y-utils": "11.7.11-snapshot-18",
23
+ "@instructure/ui-grid": "11.7.11-snapshot-18",
24
+ "@instructure/ui-icons": "11.7.11-snapshot-18",
25
+ "@instructure/ui-react-utils": "11.7.11-snapshot-18",
26
+ "@instructure/ui-themes": "11.7.11-snapshot-18",
27
+ "@instructure/ui-utils": "11.7.11-snapshot-18",
28
+ "@instructure/uid": "11.7.11-snapshot-18"
29
29
  },
30
30
  "devDependencies": {
31
- "@instructure/ui-axe-check": "11.7.11-snapshot-16",
32
- "@instructure/ui-babel-preset": "11.7.11-snapshot-16",
31
+ "@instructure/ui-axe-check": "11.7.11-snapshot-18",
32
+ "@instructure/ui-babel-preset": "11.7.11-snapshot-18",
33
33
  "vitest": "^5.0.0"
34
34
  },
35
35
  "peerDependencies": {
@@ -108,6 +108,7 @@ const generateStyle = (
108
108
  fontWeight: componentTheme.fontWeight,
109
109
  fontSize: componentTheme.fontSize,
110
110
  lineHeight: componentTheme.lineHeight,
111
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem',
111
112
  ...(isInlineLayout && {
112
113
  margin: '0',
113
114
  // when inline add a small padding between the label and the control
@@ -115,7 +116,9 @@ const generateStyle = (
115
116
  // and use the horizontal alignment prop
116
117
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]:
117
118
  {
118
- textAlign: labelAlign
119
+ textAlign: labelAlign,
120
+ // label and control are in the same row, no need for padding
121
+ paddingBottom: '0'
119
122
  }
120
123
  })
121
124
  }
@@ -168,9 +171,7 @@ const generateStyle = (
168
171
  ...labelStyles,
169
172
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
170
173
  '&:is(label)': labelStyles,
171
- '&:-webkit-any(label)': labelStyles,
172
-
173
- paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
174
+ '&:-webkit-any(label)': labelStyles
174
175
  },
175
176
  formFieldChildren: {
176
177
  label: 'formFieldLayout__children',
@@ -128,7 +128,9 @@ const generateStyle = (
128
128
  paddingRight: componentTheme.gapPrimitives,
129
129
  // and use the horizontal alignment prop
130
130
  [`@media screen and (width >= ${sharedTokens.breakpoints.md})`]: {
131
- textAlign: labelAlign
131
+ textAlign: labelAlign,
132
+ // label and control share a row here, so bottom padding would offset the label from the control's center
133
+ paddingBottom: '0'
132
134
  }
133
135
  })
134
136
  }