@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/CHANGELOG.md +28 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/base/loading_icon/loading_icon.js +1 -1
- package/dist/components/regions/empty_state/empty_state.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +11 -11
- package/src/components/base/breadcrumb/breadcrumb.vue +2 -2
- package/src/components/base/loading_icon/loading_icon.spec.js +17 -2
- package/src/components/base/loading_icon/loading_icon.vue +1 -1
- package/src/components/base/popover/popover.scss +5 -0
- package/src/components/regions/empty_state/empty_state.vue +1 -1
- package/src/scss/utilities.scss +6 -0
- package/src/scss/utility-mixins/index.scss +1 -0
- package/src/scss/utility-mixins/mix-blend-mode.scss +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "32.
|
|
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.
|
|
87
|
+
"@gitlab/eslint-plugin": "10.0.1",
|
|
88
88
|
"@gitlab/stylelint-config": "2.6.0",
|
|
89
|
-
"@gitlab/svgs": "2.
|
|
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.
|
|
94
|
-
"@storybook/addon-docs": "6.4.
|
|
95
|
-
"@storybook/addon-essentials": "6.4.
|
|
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.
|
|
98
|
-
"@storybook/addon-storyshots-puppeteer": "6.4.
|
|
99
|
-
"@storybook/addon-viewport": "6.4.
|
|
100
|
-
"@storybook/theming": "6.4.
|
|
101
|
-
"@storybook/vue": "6.4.
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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>
|
package/src/scss/utilities.scss
CHANGED
|
@@ -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
|
}
|