Commit ed63cf22 authored by Brandon Labuschagne's avatar Brandon Labuschagne

Merge branch 'gitlab-ui-integration-1435-drawer-fix-close-btn-alignment' into 'master'

Upgrade @gitlab/ui to v31.0.1

See merge request gitlab-org/gitlab!65587
parents cc3c0b5b 3fdf1a7a
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
class="boards-sidebar gl-absolute" class="boards-sidebar gl-absolute"
@close="handleClose" @close="handleClose"
> >
<template #header> <template #title>
<h2 class="gl-my-0 gl-font-size-h2 gl-line-height-24">{{ __('Issue details') }}</h2> <h2 class="gl-my-0 gl-font-size-h2 gl-line-height-24">{{ __('Issue details') }}</h2>
</template> </template>
<template #default> <template #default>
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
:open="isSidebarOpen" :open="isSidebarOpen"
@close="unsetActiveId" @close="unsetActiveId"
> >
<template #header>{{ $options.listSettingsText }}</template> <template #title>{{ $options.listSettingsText }}</template>
<template v-if="isSidebarOpen"> <template v-if="isSidebarOpen">
<div v-if="boardListType === ListType.label"> <div v-if="boardListType === ListType.label">
<label class="js-list-label gl-display-block">{{ listTypeTitle }}</label> <label class="js-list-label gl-display-block">{{ listTypeTitle }}</label>
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
class="gl-dropdown-text-py-0 gl-dropdown-text-block" class="gl-dropdown-text-py-0 gl-dropdown-text-block"
data-testid="input" data-testid="input"
> >
<gl-form-input-group :value="value" readonly select-on-click :aria-label="name"> <gl-form-input-group :value="value" readonly select-on-click :label="name">
<template #append> <template #append>
<gl-button <gl-button
v-gl-tooltip.hover v-gl-tooltip.hover
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
</script> </script>
<template> <template>
<gl-drawer class="gl-pt-8" :open="isOpen" @close="$emit('close')"> <gl-drawer class="gl-pt-8" :open="isOpen" @close="$emit('close')">
<template #header>{{ __('Page settings') }}</template> <template #title>{{ __('Page settings') }}</template>
<front-matter-controls :settings="settings" @updateSettings="$emit('updateSettings', $event)" /> <front-matter-controls :settings="settings" @updateSettings="$emit('updateSettings', $event)" />
</gl-drawer> </gl-drawer>
</template> </template>
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
:open="open" :open="open"
@close="closeDrawer" @close="closeDrawer"
> >
<template #header> <template #title>
<h4 class="page-title gl-my-2">{{ __("What's new") }}</h4> <h4 class="page-title gl-my-2">{{ __("What's new") }}</h4>
</template> </template>
<template v-if="features.length"> <template v-if="features.length">
......
...@@ -54,9 +54,12 @@ export default { ...@@ -54,9 +54,12 @@ export default {
:open="isSidebarOpen" :open="isSidebarOpen"
@close="handleClose" @close="handleClose"
> >
<template #title>
<h2 class="gl-my-0 gl-font-size-h2 gl-line-height-24">{{ __('Epic details') }}</h2>
</template>
<template #header> <template #header>
<h2 class="gl-mt-0 gl-mb-3 gl-font-size-h2 gl-line-height-24">{{ __('Epic details') }}</h2>
<sidebar-todo-widget <sidebar-todo-widget
class="gl-mt-3"
:issuable-id="activeBoardItem.fullId" :issuable-id="activeBoardItem.fullId"
:issuable-iid="activeBoardItem.iid" :issuable-iid="activeBoardItem.iid"
:full-path="fullPath" :full-path="fullPath"
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
:z-index="$options.Z_INDEX" :z-index="$options.Z_INDEX"
@close="$emit('close')" @close="$emit('close')"
> >
<template #header> <template #title>
<h4 data-testid="dashboard-drawer-title">{{ mergeRequest.title }}</h4> <h4 data-testid="dashboard-drawer-title">{{ mergeRequest.title }}</h4>
</template> </template>
<template v-if="showDrawer" #default> <template v-if="showDrawer" #default>
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
class="requirement-form-drawer" class="requirement-form-drawer"
@close="handleDrawerClose" @close="handleDrawerClose"
> >
<template #header> <template #title>
<h4 v-if="isCreate" class="gl-m-0">{{ __('New Requirement') }}</h4> <h4 v-if="isCreate" class="gl-m-0">{{ __('New Requirement') }}</h4>
<div v-else class="gl-display-flex gl-align-items-center"> <div v-else class="gl-display-flex gl-align-items-center">
<strong class="gl-text-gray-500">{{ reference }}</strong> <strong class="gl-text-gray-500">{{ reference }}</strong>
......
...@@ -141,9 +141,11 @@ export default { ...@@ -141,9 +141,11 @@ export default {
:open="isAlertDrawerOpen" :open="isAlertDrawerOpen"
@close="$emit('deselect-alert')" @close="$emit('deselect-alert')"
> >
<template #title>
<h5 class="gl-my-0">{{ selectedAlert.title }}</h5>
</template>
<template #header> <template #header>
<h5 class="gl-mt-2 gl-mb-5">{{ selectedAlert.title }}</h5> <div class="gl-mt-5">
<div>
<gl-link v-if="hasIssue" :href="alertIssuePath" data-testid="issue-link"> <gl-link v-if="hasIssue" :href="alertIssuePath" data-testid="issue-link">
{{ issueText }} {{ issueText }}
</gl-link> </gl-link>
......
...@@ -57,19 +57,18 @@ export default { ...@@ -57,19 +57,18 @@ export default {
v-bind="$attrs" v-bind="$attrs"
v-on="$listeners" v-on="$listeners"
> >
<template v-if="policy" #title>
<h3 class="gl-my-0">{{ policy.name }}</h3>
</template>
<template v-if="policy" #header> <template v-if="policy" #header>
<div>
<h3 class="gl-mb-5 gl-mt-0">{{ policy.name }}</h3>
<div>
<gl-button <gl-button
class="gl-mt-5"
data-testid="edit-button" data-testid="edit-button"
category="primary" category="primary"
variant="info" variant="info"
:href="editPolicyPath" :href="editPolicyPath"
>{{ s__('NetworkPolicies|Edit policy') }}</gl-button >{{ s__('NetworkPolicies|Edit policy') }}</gl-button
> >
</div>
</div>
</template> </template>
<div v-if="policy"> <div v-if="policy">
<component :is="policyComponent" v-if="policyComponent" :value="policy.yaml" /> <component :is="policyComponent" v-if="policyComponent" :value="policy.yaml" />
......
...@@ -9,6 +9,7 @@ exports[`ee/BoardContentSidebar matches the snapshot 1`] = ` ...@@ -9,6 +9,7 @@ exports[`ee/BoardContentSidebar matches the snapshot 1`] = `
> >
Issue details Issue details
</h2> </h2>
<boardsidebartitle-stub /> <boardsidebartitle-stub />
<sidebarassigneeswidget-stub <sidebarassigneeswidget-stub
......
...@@ -59,7 +59,12 @@ describe('ee/BoardContentSidebar', () => { ...@@ -59,7 +59,12 @@ describe('ee/BoardContentSidebar', () => {
store, store,
stubs: { stubs: {
GlDrawer: stubComponent(GlDrawer, { GlDrawer: stubComponent(GlDrawer, {
template: '<div><slot name="header"></slot><slot></slot></div>', template: `
<div>
<slot name="title"></slot>
<slot name="header"></slot>
<slot></slot>
</div>`,
}), }),
BoardEditableItem: true, BoardEditableItem: true,
BoardSidebarTitle: true, BoardSidebarTitle: true,
......
...@@ -908,15 +908,15 @@ ...@@ -908,15 +908,15 @@
resolved "https://registry.yarnpkg.com/@gitlab/tributejs/-/tributejs-1.0.0.tgz#672befa222aeffc83e7d799b0500a7a4418e59b8" resolved "https://registry.yarnpkg.com/@gitlab/tributejs/-/tributejs-1.0.0.tgz#672befa222aeffc83e7d799b0500a7a4418e59b8"
integrity sha512-nmKw1+hB6MHvlmPz63yPwVs1qQkycHwsKgxpEbzmky16Y6mL4EJMk3w1b8QlOAF/AIAzjCERPhe/R4MJiohbZw== integrity sha512-nmKw1+hB6MHvlmPz63yPwVs1qQkycHwsKgxpEbzmky16Y6mL4EJMk3w1b8QlOAF/AIAzjCERPhe/R4MJiohbZw==
"@gitlab/ui@30.2.1": "@gitlab/ui@31.0.1":
version "30.2.1" version "31.0.1"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-30.2.1.tgz#be582413712cd2372ff01279e47579f5785591d4" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-31.0.1.tgz#55c481f2e2fa777ff34237a8229f39553428d107"
integrity sha512-Pv2w5ZSR7+G5zcaRjvf8KPs7wQRBqAXXNvKOw2pg/aZsRoK+JfN1neNmfeaqO6K/k1TJyiP6inDXAvhU8SqmOg== integrity sha512-Sw7Hm9VZ4ZE6knZNkd9L7vs1DGmeTFC1d0xzDytOKBw+1kK1+CpCLae2ehT+Kkkwho9GLwUFtHDdATEDLbFaBg==
dependencies: dependencies:
"@babel/standalone" "^7.0.0" "@babel/standalone" "^7.0.0"
bootstrap-vue "2.18.1" bootstrap-vue "2.18.1"
copy-to-clipboard "^3.0.8" copy-to-clipboard "^3.0.8"
dompurify "^2.2.9" dompurify "^2.3.0"
echarts "^4.9.0" echarts "^4.9.0"
highlight.js "^10.6.0" highlight.js "^10.6.0"
js-beautify "^1.8.8" js-beautify "^1.8.8"
...@@ -4524,7 +4524,7 @@ domhandler@^4.0.0, domhandler@^4.2.0: ...@@ -4524,7 +4524,7 @@ domhandler@^4.0.0, domhandler@^4.2.0:
dependencies: dependencies:
domelementtype "^2.2.0" domelementtype "^2.2.0"
dompurify@^2.2.9, dompurify@^2.3.0: dompurify@^2.3.0:
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.3.0.tgz#07bb39515e491588e5756b1d3e8375b5964814e2" resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.3.0.tgz#07bb39515e491588e5756b1d3e8375b5964814e2"
integrity sha512-VV5C6Kr53YVHGOBKO/F86OYX6/iLTw2yVSI721gKetxpHCK/V5TaLEf9ODjRgl1KLSWRMY6cUhAbv/c+IUnwQw== integrity sha512-VV5C6Kr53YVHGOBKO/F86OYX6/iLTw2yVSI721gKetxpHCK/V5TaLEf9ODjRgl1KLSWRMY6cUhAbv/c+IUnwQw==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment