@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 +7 -0
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.spec.js +3 -3
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +1 -1
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
|
};
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -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')).
|
|
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')).
|
|
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')).
|
|
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
|
};
|