@gitlab/ui 73.2.0 → 73.3.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 +14 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +6 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +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/breadcrumb/breadcrumb.spec.js +16 -2
- package/src/components/base/breadcrumb/breadcrumb.stories.js +1 -0
- package/src/components/base/breadcrumb/breadcrumb.vue +6 -1
- package/src/components/experimental/duo/chat/duo_chat.scss +3 -1
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils';
|
|
|
2
2
|
import { nextTick } from 'vue';
|
|
3
3
|
import avatarPath1 from '../../../../static/img/avatar.png';
|
|
4
4
|
import avatarPath3 from '../../../../static/img/avatar_1.png';
|
|
5
|
-
import
|
|
5
|
+
import GlBreadcrumb, { COLLAPSE_AT_SIZE } from './breadcrumb.vue';
|
|
6
6
|
import GlBreadcrumbItem from './breadcrumb_item.vue';
|
|
7
7
|
|
|
8
8
|
describe('Breadcrumb component', () => {
|
|
@@ -39,7 +39,7 @@ describe('Breadcrumb component', () => {
|
|
|
39
39
|
findBreadcrumbItems().wrappers.filter((item) => !item.isVisible());
|
|
40
40
|
|
|
41
41
|
const createComponent = (propsData = { items }) => {
|
|
42
|
-
wrapper = shallowMount(
|
|
42
|
+
wrapper = shallowMount(GlBreadcrumb, {
|
|
43
43
|
propsData,
|
|
44
44
|
stubs: {
|
|
45
45
|
GlBreadcrumbItem,
|
|
@@ -61,6 +61,20 @@ describe('Breadcrumb component', () => {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
+
describe('ariaLabel', () => {
|
|
65
|
+
it('uses prop if provided', () => {
|
|
66
|
+
createComponent({ items, ariaLabel: 'Folder breadcrumbs' });
|
|
67
|
+
|
|
68
|
+
expect(wrapper.attributes('aria-label')).toBe('Folder breadcrumbs');
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('uses default if prop not provided', () => {
|
|
72
|
+
createComponent();
|
|
73
|
+
|
|
74
|
+
expect(wrapper.attributes('aria-label')).toBe('Breadcrumb');
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
64
78
|
describe('avatars', () => {
|
|
65
79
|
it('renders 2 avatars when 2 avatarPaths are passed', () => {
|
|
66
80
|
createComponent();
|
|
@@ -35,6 +35,11 @@ export default {
|
|
|
35
35
|
});
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
+
ariaLabel: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false,
|
|
41
|
+
default: 'Breadcrumb',
|
|
42
|
+
},
|
|
38
43
|
},
|
|
39
44
|
data() {
|
|
40
45
|
return {
|
|
@@ -84,7 +89,7 @@ export default {
|
|
|
84
89
|
};
|
|
85
90
|
</script>
|
|
86
91
|
<template>
|
|
87
|
-
<nav class="gl-breadcrumbs" aria-label="
|
|
92
|
+
<nav class="gl-breadcrumbs" :aria-label="ariaLabel">
|
|
88
93
|
<b-breadcrumb class="gl-breadcrumb-list" v-bind="$attrs" v-on="$listeners">
|
|
89
94
|
<template v-for="(item, index) in items">
|
|
90
95
|
<!-- eslint-disable-next-line vue/valid-v-for (for @vue/compat) -->
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
.duo-chat-input {
|
|
37
37
|
@include gl-display-flex;
|
|
38
38
|
@include gl-flex-direction-column;
|
|
39
|
+
max-height: 240px;
|
|
40
|
+
overflow: hidden;
|
|
39
41
|
|
|
40
42
|
&:focus-within {
|
|
41
43
|
@include gl-focus($color: $gray-900);
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
flex: 1;
|
|
46
48
|
resize: none;
|
|
47
49
|
max-height: 240px;
|
|
48
|
-
|
|
50
|
+
padding-right: 40px;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
&::after {
|