@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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 02 Feb 2024 13:01:42 GMT
3
+ * Generated on Fri, 02 Feb 2024 16:41:32 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 02 Feb 2024 13:01:42 GMT
3
+ * Generated on Fri, 02 Feb 2024 16:41:32 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 Fri, 02 Feb 2024 13:01:42 GMT
3
+ * Generated on Fri, 02 Feb 2024 16:41:32 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 Fri, 02 Feb 2024 13:01:42 GMT
3
+ * Generated on Fri, 02 Feb 2024 16:41:32 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 Fri, 02 Feb 2024 13:01:42 GMT
3
+ // Generated on Fri, 02 Feb 2024 16:41:32 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 Fri, 02 Feb 2024 13:01:42 GMT
3
+ // Generated on Fri, 02 Feb 2024 16:41:32 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": "73.2.0",
3
+ "version": "73.3.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -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 Breadcrumb, { COLLAPSE_AT_SIZE } from './breadcrumb.vue';
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(Breadcrumb, {
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();
@@ -6,6 +6,7 @@ import readme from './breadcrumb.md';
6
6
  const template = `
7
7
  <gl-breadcrumb
8
8
  :items="items"
9
+ :aria-label="ariaLabel"
9
10
  />
10
11
  `;
11
12
 
@@ -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="Breadcrumb">
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
- width: calc(100% - 40px);
50
+ padding-right: 40px;
49
51
  }
50
52
 
51
53
  &::after {