@gitlab/ui 32.51.3 → 32.54.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "32.51.3",
3
+ "version": "32.54.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -84,21 +84,21 @@
84
84
  "@arkweid/lefthook": "^0.7.6",
85
85
  "@babel/core": "^7.10.2",
86
86
  "@babel/preset-env": "^7.10.2",
87
- "@gitlab/eslint-plugin": "10.0.0",
87
+ "@gitlab/eslint-plugin": "10.0.1",
88
88
  "@gitlab/stylelint-config": "2.6.0",
89
- "@gitlab/svgs": "2.0.0",
89
+ "@gitlab/svgs": "2.2.0",
90
90
  "@rollup/plugin-commonjs": "^11.1.0",
91
91
  "@rollup/plugin-node-resolve": "^7.1.3",
92
92
  "@rollup/plugin-replace": "^2.3.2",
93
- "@storybook/addon-a11y": "6.4.9",
94
- "@storybook/addon-docs": "6.4.9",
95
- "@storybook/addon-essentials": "6.4.9",
93
+ "@storybook/addon-a11y": "6.4.10",
94
+ "@storybook/addon-docs": "6.4.10",
95
+ "@storybook/addon-essentials": "6.4.10",
96
96
  "@storybook/addon-knobs": "6.4.0",
97
- "@storybook/addon-storyshots": "6.4.9",
98
- "@storybook/addon-storyshots-puppeteer": "6.4.9",
99
- "@storybook/addon-viewport": "6.4.9",
100
- "@storybook/theming": "6.4.9",
101
- "@storybook/vue": "6.4.9",
97
+ "@storybook/addon-storyshots": "6.4.10",
98
+ "@storybook/addon-storyshots-puppeteer": "6.4.10",
99
+ "@storybook/addon-viewport": "6.4.10",
100
+ "@storybook/theming": "6.4.10",
101
+ "@storybook/vue": "6.4.10",
102
102
  "@vue/test-utils": "1.3.0",
103
103
  "autoprefixer": "^9.7.6",
104
104
  "babel-jest": "^26.6.3",
@@ -33,7 +33,7 @@ export default {
33
33
  };
34
34
  </script>
35
35
  <template>
36
- <div class="gl-breadcrumbs">
36
+ <nav class="gl-breadcrumbs" aria-label="Breadcrumb">
37
37
  <!-- @slot The avatar to display. -->
38
38
  <slot name="avatar"></slot>
39
39
  <b-breadcrumb class="gl-breadcrumb-list" v-bind="$attrs" v-on="$listeners">
@@ -60,5 +60,5 @@ export default {
60
60
  </b-breadcrumb-item>
61
61
  </template>
62
62
  </b-breadcrumb>
63
- </div>
63
+ </nav>
64
64
  </template>
@@ -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>
@@ -67,6 +67,11 @@ $gl-popover-max-width: $grid-size * 35;
67
67
  @include gl-font-sm;
68
68
  @include gl-font-weight-bold;
69
69
  @include gl-m-0;
70
+
71
+ .gl-button.close {
72
+ margin-top: -$gl-spacing-scale-3;
73
+ margin-right: -$gl-spacing-scale-4;
74
+ }
70
75
  }
71
76
 
72
77
  .popover-body {
@@ -97,7 +97,7 @@ export default {
97
97
 
98
98
  <template>
99
99
  <section
100
- class="gl-display-flex gl-flex-wrap"
100
+ class="gl-display-flex"
101
101
  :class="{
102
102
  'empty-state gl-text-center gl-flex-direction-column': !compact,
103
103
  'gl-flex-direction-row': compact,
@@ -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
+ }