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

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,11 +3,12 @@
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-18](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-18) (2026-11-13)
6
+ ## [11.7.11-snapshot-17](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-17) (2026-11-13)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-form-field
9
+
7
10
 
8
- ### Bug Fixes
9
11
 
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))
11
12
 
12
13
 
13
14
  ## [11.7.10](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.10) (2026-10-14)
@@ -94,16 +94,13 @@ 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',
98
97
  ...(isInlineLayout && {
99
98
  margin: '0',
100
99
  // when inline add a small padding between the label and the control
101
100
  paddingRight: componentTheme.inlinePadding,
102
101
  // and use the horizontal alignment prop
103
102
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]: {
104
- textAlign: labelAlign,
105
- // label and control are in the same row, no need for padding
106
- paddingBottom: '0'
103
+ textAlign: labelAlign
107
104
  }
108
105
  })
109
106
  };
@@ -150,7 +147,8 @@ const generateStyle = (componentTheme, props, styleProps) => {
150
147
  ...labelStyles,
151
148
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
152
149
  '&:is(label)': labelStyles,
153
- '&:-webkit-any(label)': labelStyles
150
+ '&:-webkit-any(label)': labelStyles,
151
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
154
152
  },
155
153
  formFieldChildren: {
156
154
  label: 'formFieldLayout__children',
@@ -97,9 +97,7 @@ 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,
101
- // label and control share a row here, so bottom padding would offset the label from the control's center
102
- paddingBottom: '0'
100
+ textAlign: labelAlign
103
101
  }
104
102
  })
105
103
  };
@@ -100,16 +100,13 @@ 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',
104
103
  ...(isInlineLayout && {
105
104
  margin: '0',
106
105
  // when inline add a small padding between the label and the control
107
106
  paddingRight: componentTheme.inlinePadding,
108
107
  // and use the horizontal alignment prop
109
108
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]: {
110
- textAlign: labelAlign,
111
- // label and control are in the same row, no need for padding
112
- paddingBottom: '0'
109
+ textAlign: labelAlign
113
110
  }
114
111
  })
115
112
  };
@@ -156,7 +153,8 @@ const generateStyle = (componentTheme, props, styleProps) => {
156
153
  ...labelStyles,
157
154
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
158
155
  '&:is(label)': labelStyles,
159
- '&:-webkit-any(label)': labelStyles
156
+ '&:-webkit-any(label)': labelStyles,
157
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
160
158
  },
161
159
  formFieldChildren: {
162
160
  label: 'formFieldLayout__children',
@@ -103,9 +103,7 @@ 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,
107
- // label and control share a row here, so bottom padding would offset the label from the control's center
108
- paddingBottom: '0'
106
+ textAlign: labelAlign
109
107
  }
110
108
  })
111
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "11.7.11-snapshot-18",
3
+ "version": "11.7.11-snapshot-17",
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-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"
18
+ "@instructure/console": "11.7.11-snapshot-17",
19
+ "@instructure/emotion": "11.7.11-snapshot-17",
20
+ "@instructure/shared-types": "11.7.11-snapshot-17",
21
+ "@instructure/ui-a11y-content": "11.7.11-snapshot-17",
22
+ "@instructure/ui-a11y-utils": "11.7.11-snapshot-17",
23
+ "@instructure/ui-grid": "11.7.11-snapshot-17",
24
+ "@instructure/ui-icons": "11.7.11-snapshot-17",
25
+ "@instructure/ui-react-utils": "11.7.11-snapshot-17",
26
+ "@instructure/ui-themes": "11.7.11-snapshot-17",
27
+ "@instructure/ui-utils": "11.7.11-snapshot-17",
28
+ "@instructure/uid": "11.7.11-snapshot-17"
29
29
  },
30
30
  "devDependencies": {
31
- "@instructure/ui-axe-check": "11.7.11-snapshot-18",
32
- "@instructure/ui-babel-preset": "11.7.11-snapshot-18",
31
+ "@instructure/ui-axe-check": "11.7.11-snapshot-17",
32
+ "@instructure/ui-babel-preset": "11.7.11-snapshot-17",
33
33
  "vitest": "^5.0.0"
34
34
  },
35
35
  "peerDependencies": {
@@ -108,7 +108,6 @@ const generateStyle = (
108
108
  fontWeight: componentTheme.fontWeight,
109
109
  fontSize: componentTheme.fontSize,
110
110
  lineHeight: componentTheme.lineHeight,
111
- paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem',
112
111
  ...(isInlineLayout && {
113
112
  margin: '0',
114
113
  // when inline add a small padding between the label and the control
@@ -116,9 +115,7 @@ const generateStyle = (
116
115
  // and use the horizontal alignment prop
117
116
  [`@media screen and (width >= ${componentTheme.stackedOrInlineBreakpoint})`]:
118
117
  {
119
- textAlign: labelAlign,
120
- // label and control are in the same row, no need for padding
121
- paddingBottom: '0'
118
+ textAlign: labelAlign
122
119
  }
123
120
  })
124
121
  }
@@ -171,7 +168,9 @@ const generateStyle = (
171
168
  ...labelStyles,
172
169
  // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
173
170
  '&:is(label)': labelStyles,
174
- '&:-webkit-any(label)': labelStyles
171
+ '&:-webkit-any(label)': labelStyles,
172
+
173
+ paddingBottom: hasNonEmptyMessages ? '0' : '0.75rem'
175
174
  },
176
175
  formFieldChildren: {
177
176
  label: 'formFieldLayout__children',
@@ -128,9 +128,7 @@ 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,
132
- // label and control share a row here, so bottom padding would offset the label from the control's center
133
- paddingBottom: '0'
131
+ textAlign: labelAlign
134
132
  }
135
133
  })
136
134
  }