@gitlab/ui 61.0.0 → 61.1.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
|
@@ -2,6 +2,7 @@ $gl-avatar-identicon-bgs: $red-50, $purple-50, $theme-indigo-50, $blue-50, $gree
|
|
|
2
2
|
$gray-50;
|
|
3
3
|
|
|
4
4
|
@mixin gl-avatar {
|
|
5
|
+
@include gl-display-inline-flex;
|
|
5
6
|
@include gl-border-1;
|
|
6
7
|
@include gl-border-solid;
|
|
7
8
|
@include gl-border-gray-a-08;
|
|
@@ -201,7 +202,6 @@ $gl-avatar-identicon-bgs: $red-50, $purple-50, $theme-indigo-50, $blue-50, $gree
|
|
|
201
202
|
@include gl-text-center;
|
|
202
203
|
@include gl-vertical-align-top;
|
|
203
204
|
@include gl-text-gray-900;
|
|
204
|
-
@include gl-display-flex;
|
|
205
205
|
@include gl-justify-content-center;
|
|
206
206
|
@include gl-align-items-center;
|
|
207
207
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { bannerVariants } from '../../../utils/constants';
|
|
3
|
+
import CloseButton from '../../shared_components/close_button/close_button.vue';
|
|
3
4
|
import GlButton from '../button/button.vue';
|
|
4
5
|
import GlCard from '../card/card.vue';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
name: 'GlBanner',
|
|
8
9
|
components: {
|
|
10
|
+
CloseButton,
|
|
9
11
|
GlButton,
|
|
10
12
|
GlCard,
|
|
11
13
|
},
|
|
@@ -51,6 +53,14 @@ export default {
|
|
|
51
53
|
return bannerVariants.includes(value);
|
|
52
54
|
},
|
|
53
55
|
},
|
|
56
|
+
/**
|
|
57
|
+
* Dismiss button's aria-label.
|
|
58
|
+
*/
|
|
59
|
+
dismissLabel: {
|
|
60
|
+
type: String,
|
|
61
|
+
required: false,
|
|
62
|
+
default: 'Dismiss',
|
|
63
|
+
},
|
|
54
64
|
/**
|
|
55
65
|
* Removes the border for banners embedded in content.
|
|
56
66
|
*/
|
|
@@ -112,14 +122,6 @@ export default {
|
|
|
112
122
|
<!-- @slot The banner actions to display -->
|
|
113
123
|
<slot name="actions"></slot>
|
|
114
124
|
</div>
|
|
115
|
-
<gl-
|
|
116
|
-
:variant="isIntroducing ? 'confirm' : 'default'"
|
|
117
|
-
category="tertiary"
|
|
118
|
-
size="small"
|
|
119
|
-
icon="close"
|
|
120
|
-
aria-label="Close banner"
|
|
121
|
-
class="gl-banner-close"
|
|
122
|
-
@click="handleClose"
|
|
123
|
-
/>
|
|
125
|
+
<close-button class="gl-banner-close" :label="dismissLabel" @click="handleClose" />
|
|
124
126
|
</gl-card>
|
|
125
127
|
</template>
|