@gitlab/ui 74.9.0 → 74.9.1

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
@@ -1,3 +1,10 @@
1
+ ## [74.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v74.9.0...v74.9.1) (2024-02-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **dropdown:** set aria-expanded to string ([8fbae07](https://gitlab.com/gitlab-org/gitlab-ui/commit/8fbae078b59eb2ec17c00b2fb288cb99017e1f2c))
7
+
1
8
  # [74.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v74.8.0...v74.9.0) (2024-02-19)
2
9
 
3
10
 
@@ -152,7 +152,7 @@ var script = {
152
152
  ariaAttributes() {
153
153
  return {
154
154
  'aria-haspopup': this.ariaHaspopup,
155
- 'aria-expanded': this.visible,
155
+ 'aria-expanded': String(this.visible),
156
156
  'aria-controls': this.baseDropdownId,
157
157
  'aria-labelledby': this.toggleLabelledBy
158
158
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ * Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ * Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ * Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#133a03";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ * Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#ddfab7";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ // Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 19 Feb 2024 23:43:48 GMT
3
+ // Generated on Tue, 20 Feb 2024 00:41:01 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "74.9.0",
3
+ "version": "74.9.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -307,7 +307,7 @@ describe('base dropdown', () => {
307
307
  // close menu clicking toggle btn
308
308
  await toggle.trigger('click');
309
309
  expect(menu.classes('gl-display-block!')).toBe(false);
310
- expect(toggle.attributes('aria-expanded')).toBeUndefined();
310
+ expect(toggle.attributes('aria-expanded')).toBe('false');
311
311
  expect(wrapper.emitted(GL_DROPDOWN_HIDDEN)).toHaveLength(1);
312
312
  expect(toggle.element).toHaveFocus();
313
313
  });
@@ -332,7 +332,7 @@ describe('base dropdown', () => {
332
332
  await menu.trigger('keydown.esc');
333
333
 
334
334
  expect(menu.classes('gl-display-block!')).toBe(false);
335
- expect(toggle.attributes('aria-expanded')).toBeUndefined();
335
+ expect(toggle.attributes('aria-expanded')).toBe('false');
336
336
  expect(wrapper.emitted(GL_DROPDOWN_HIDDEN)).toHaveLength(1);
337
337
  expect(toggle.element).toHaveFocus();
338
338
  });
@@ -391,7 +391,7 @@ describe('base dropdown', () => {
391
391
  moveFocusWithinDropdown();
392
392
  await menu.trigger('keydown.esc');
393
393
  expect(menu.classes('gl-display-block!')).toBe(true);
394
- expect(toggle.attributes('aria-expanded')).toBeDefined();
394
+ expect(toggle.attributes('aria-expanded')).toBe('true');
395
395
  expect(wrapper.emitted(GL_DROPDOWN_HIDDEN)).toBeUndefined();
396
396
  expect(toggle.element).not.toHaveFocus();
397
397
  });
@@ -166,7 +166,7 @@ export default {
166
166
  ariaAttributes() {
167
167
  return {
168
168
  'aria-haspopup': this.ariaHaspopup,
169
- 'aria-expanded': this.visible,
169
+ 'aria-expanded': String(this.visible),
170
170
  'aria-controls': this.baseDropdownId,
171
171
  'aria-labelledby': this.toggleLabelledBy,
172
172
  };