@gitlab/ui 32.51.1 → 32.53.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": "32.51.1",
3
+ "version": "32.53.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -15,15 +15,16 @@ to draw a `/`
15
15
  ```html
16
16
  <gl-breadcrumb :items="items">
17
17
  <template #avatar>
18
- <img
18
+ <img
19
+ alt=""
19
20
  class="gl-breadcrumb-avatar-tile"
20
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=15"
21
- width="15"
22
- height="15"
21
+ src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=16"
22
+ width="16"
23
+ height="16"
23
24
  />
24
25
  </template>
25
26
  <template #separator>
26
- <svg width="100" height="15">
27
+ <svg height="16">
27
28
  <line x1="100%" y1="0" x2="0" y2="100%" stroke="gray" />
28
29
  </svg>
29
30
  </template>
@@ -38,7 +38,7 @@ $breadcrumb-max-width: $grid-size * 16;
38
38
  @include gl-border-1;
39
39
  @include gl-border-solid;
40
40
  @include gl-border-gray-200;
41
- @include gl-rounded-full;
41
+ @include gl-rounded-base;
42
42
  }
43
43
 
44
44
  // bootstrap overrides
@@ -6,7 +6,10 @@ const template = `
6
6
  :items="items"
7
7
  >
8
8
  <template #avatar>
9
- <img class="gl-breadcrumb-avatar-tile" src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=16" width="16" height="16" />
9
+ <img alt=""
10
+ class="gl-breadcrumb-avatar-tile" src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=16"
11
+ width="16"
12
+ height="16" />
10
13
  </template>
11
14
  </gl-breadcrumb>
12
15
  `;
@@ -3,8 +3,8 @@ import LoadingIcon from './loading_icon.vue';
3
3
 
4
4
  describe('loading icon component', () => {
5
5
  let wrapper;
6
- const createComponent = (propsData) => {
7
- wrapper = shallowMount(LoadingIcon, { propsData });
6
+ const createComponent = ({ attrs, ...propsData } = {}) => {
7
+ wrapper = shallowMount(LoadingIcon, { propsData, attrs });
8
8
  };
9
9
 
10
10
  const baseCssClass = 'gl-spinner';
@@ -83,4 +83,19 @@ describe('loading icon component', () => {
83
83
  expect(spinnerEl.attributes('aria-label')).toBe(label);
84
84
  });
85
85
  });
86
+
87
+ describe('role', () => {
88
+ it('should have default role value as status', () => {
89
+ createComponent();
90
+
91
+ expect(wrapper.attributes('role')).toBe('status');
92
+ });
93
+
94
+ it('should have role value as custom value passed', () => {
95
+ const role = 'dialog';
96
+ createComponent({ attrs: { role } });
97
+
98
+ expect(wrapper.attributes('role')).toBe(role);
99
+ });
100
+ });
86
101
  });
@@ -63,7 +63,7 @@ export default {
63
63
  };
64
64
  </script>
65
65
  <template>
66
- <component :is="rootElementType" class="gl-spinner-container">
66
+ <component :is="rootElementType" class="gl-spinner-container" role="status">
67
67
  <span :class="cssClasses" class="align-text-bottom" :aria-label="label"></span>
68
68
  </component>
69
69
  </template>
@@ -96,14 +96,22 @@ export default {
96
96
  </script>
97
97
 
98
98
  <template>
99
- <section class="row" :class="{ 'empty-state text-center': !compact }">
100
- <div :class="{ 'col-3 d-none d-sm-block': compact, 'col-12': !compact }">
99
+ <section
100
+ class="gl-display-flex gl-flex-wrap"
101
+ :class="{
102
+ 'empty-state gl-text-center gl-flex-direction-column': !compact,
103
+ 'gl-flex-direction-row': compact,
104
+ }"
105
+ >
106
+ <div
107
+ :class="{ 'gl-display-none gl-sm-display-block gl-px-4': compact, 'gl-max-w-full': !compact }"
108
+ >
101
109
  <div v-if="svgPath" :class="{ 'svg-content': !compact }" class="svg-250">
102
110
  <img :src="svgPath" alt="" role="img" class="gl-max-w-full" :height="height" />
103
111
  </div>
104
112
  </div>
105
- <div :class="compact ? 'col-sm-9' : 'col-12'">
106
- <div class="text-content gl-mx-auto gl-my-0" :class="{ 'gl-p-5': !compact }">
113
+ <div :class="compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-max-w-full gl-m-auto'">
114
+ <div class="gl-mx-auto gl-my-0" :class="{ 'gl-p-5': !compact }">
107
115
  <h1
108
116
  ref="title"
109
117
  class="gl-font-size-h-display gl-line-height-36"
@@ -3306,6 +3306,12 @@
3306
3306
  mask-position: center !important;
3307
3307
  mask-size: cover !important
3308
3308
  }
3309
+ .gl-mix-blend-mode-luminosity {
3310
+ mix-blend-mode: luminosity
3311
+ }
3312
+ .gl-mix-blend-mode-luminosity\! {
3313
+ mix-blend-mode: luminosity !important
3314
+ }
3309
3315
  .gl-opacity-0 {
3310
3316
  opacity: 0
3311
3317
  }
@@ -29,6 +29,7 @@
29
29
  @import './grid';
30
30
  @import './list-style';
31
31
  @import './masks';
32
+ @import './mix-blend-mode';
32
33
  @import './opacity';
33
34
  @import './outline';
34
35
  @import './overflow';
@@ -0,0 +1,3 @@
1
+ @mixin gl-mix-blend-mode-luminosity {
2
+ mix-blend-mode: luminosity;
3
+ }