@gitlab/ui 66.15.0 → 66.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "66.15.0",
3
+ "version": "66.16.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -123,9 +123,14 @@
123
123
  }
124
124
  }
125
125
 
126
- // Helper functions to aid maintenance of heading styles
127
126
 
128
- // Because we can't interpolate into a variable name we have to do some stuff
127
+ /**
128
+ * Helper function to resolve font-size value from $gl-font-sizes and
129
+ * $gl-font-sizes-fixed maps.
130
+ *
131
+ * @param $size Number font-size scale
132
+ * @param $fixed Boolean toggle default and fixed font size scales
133
+ */
129
134
  @function get-font-size-variable($size, $fixed) {
130
135
  @if $fixed == true {
131
136
  @if map-has-key($gl-font-sizes-fixed, $size) {
@@ -144,17 +149,22 @@
144
149
  }
145
150
  }
146
151
 
147
- // Set fixed as false by default, matching desired usage in the product
148
- // Headings do not have margin included, margin is determined by the context
149
- @mixin gl-heading($size, $fixed: false) {
150
- // These settings apply to all headings
152
+ /**
153
+ * Defines default properties for heading typography based on font-size
154
+ * scale value and default or fixed sizing.
155
+ *
156
+ * Note: overrides Bootstrap margin-top, other margin is determined by
157
+ * individual context
158
+ *
159
+ * @param $size Number font-size scale
160
+ * @param $fixed Boolean toggle default and fixed font size scales
161
+ */
162
+ @mixin gl-heading-scale($size, $fixed: false) {
151
163
  font-weight: $gl-font-weight-heading;
152
164
  margin-top: 0; // override bootstrap reset in GitLab
153
-
154
- // Because we can't interpolate into a variable name we have to do some stuff
155
165
  font-size: get-font-size-variable($size, $fixed);
156
166
 
157
- // Larger headings have less letter spacing
167
+ // Larger headings have reduced letter spacing
158
168
  @if ($size <= 500) {
159
169
  letter-spacing: $gl-letter-spacing-heading;
160
170
  } @else {