Commit d1eb3b42 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '976-fix-search-styling-in-dropdown-gitlab-ui-integration-test' into 'master'

Upgrade @gitlab/ui to v21.30.1

See merge request gitlab-org/gitlab!44781
parents 1f6aef6b a8e3e771
...@@ -229,11 +229,7 @@ export default { ...@@ -229,11 +229,7 @@ export default {
<p class="gl-new-dropdown-header-top"> <p class="gl-new-dropdown-header-top">
{{ __('Assign To') }} {{ __('Assign To') }}
</p> </p>
<gl-search-box-by-type <gl-search-box-by-type v-model.trim="search" :placeholder="__('Search users')" />
v-model.trim="search"
class="m-2"
:placeholder="__('Search users')"
/>
<div class="dropdown-content dropdown-body"> <div class="dropdown-content dropdown-body">
<template v-if="userListValid"> <template v-if="userListValid">
<gl-dropdown-item <gl-dropdown-item
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
</script> </script>
<template> <template>
<gl-dropdown :text="value"> <gl-dropdown :text="value">
<gl-search-box-by-type v-model.trim="searchTerm" class="gl-m-3" /> <gl-search-box-by-type v-model.trim="searchTerm" />
<gl-dropdown-item <gl-dropdown-item
v-for="environment in filteredResults" v-for="environment in filteredResults"
:key="environment" :key="environment"
......
...@@ -130,7 +130,6 @@ export default { ...@@ -130,7 +130,6 @@ export default {
<gl-search-box-by-type <gl-search-box-by-type
v-model.trim="searchQuery" v-model.trim="searchQuery"
:placeholder="s__('ClusterIntegration|Search domains')" :placeholder="s__('ClusterIntegration|Search domains')"
class="gl-m-3"
/> />
<gl-dropdown-item <gl-dropdown-item
v-for="domain in filteredDomains" v-for="domain in filteredDomains"
......
...@@ -80,7 +80,6 @@ export default { ...@@ -80,7 +80,6 @@ export default {
<gl-search-box-by-type <gl-search-box-by-type
ref="searchBox" ref="searchBox"
v-model.trim="environmentSearch" v-model.trim="environmentSearch"
class="gl-m-3"
@focus="fetchEnvironments" @focus="fetchEnvironments"
@keyup="fetchEnvironments" @keyup="fetchEnvironments"
/> />
......
...@@ -301,7 +301,7 @@ export default { ...@@ -301,7 +301,7 @@ export default {
" "
@hide="resetDropdown" @hide="resetDropdown"
> >
<gl-search-box-by-type v-model.trim="searchTerm" class="gl-m-3" /> <gl-search-box-by-type v-model.trim="searchTerm" />
<gl-loading-icon v-if="isFetching" /> <gl-loading-icon v-if="isFetching" />
......
...@@ -205,7 +205,6 @@ export default { ...@@ -205,7 +205,6 @@ export default {
<gl-search-box-by-type <gl-search-box-by-type
ref="searchBox" ref="searchBox"
v-model.trim="searchQuery" v-model.trim="searchQuery"
class="gl-m-3"
:placeholder="this.$options.translations.searchMilestones" :placeholder="this.$options.translations.searchMilestones"
@input="onSearchBoxInput" @input="onSearchBoxInput"
@keydown.enter.prevent="onSearchBoxEnter" @keydown.enter.prevent="onSearchBoxEnter"
......
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
> >
<div class="d-flex flex-column overflow-hidden"> <div class="d-flex flex-column overflow-hidden">
<gl-dropdown-section-header>{{ __('Environment') }}</gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Environment') }}</gl-dropdown-section-header>
<gl-search-box-by-type class="gl-m-3" @input="debouncedEnvironmentsSearch" /> <gl-search-box-by-type @input="debouncedEnvironmentsSearch" />
<gl-loading-icon v-if="environmentsLoading" :inline="true" /> <gl-loading-icon v-if="environmentsLoading" :inline="true" />
<div v-else class="flex-fill overflow-auto"> <div v-else class="flex-fill overflow-auto">
......
...@@ -80,11 +80,7 @@ export default { ...@@ -80,11 +80,7 @@ export default {
> >
<div class="d-flex flex-column overflow-hidden"> <div class="d-flex flex-column overflow-hidden">
<gl-dropdown-section-header>{{ __('Dashboard') }}</gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Dashboard') }}</gl-dropdown-section-header>
<gl-search-box-by-type <gl-search-box-by-type ref="monitorDashboardsDropdownSearch" v-model="searchTerm" />
ref="monitorDashboardsDropdownSearch"
v-model="searchTerm"
class="gl-m-3"
/>
<div class="flex-fill overflow-auto"> <div class="flex-fill overflow-auto">
<gl-dropdown-item <gl-dropdown-item
......
...@@ -237,7 +237,6 @@ export default { ...@@ -237,7 +237,6 @@ export default {
<gl-search-box-by-type <gl-search-box-by-type
v-model.trim="searchTerm" v-model.trim="searchTerm"
:placeholder="__('Search branches and tags')" :placeholder="__('Search branches and tags')"
class="gl-p-2"
/> />
<gl-dropdown-item <gl-dropdown-item
v-for="(ref, index) in filteredRefs" v-for="(ref, index) in filteredRefs"
......
...@@ -119,7 +119,6 @@ export default { ...@@ -119,7 +119,6 @@ export default {
<gl-dropdown-divider /> <gl-dropdown-divider />
<gl-search-box-by-type <gl-search-box-by-type
v-model.trim="authorInput" v-model.trim="authorInput"
class="gl-m-3"
:placeholder="__('Search')" :placeholder="__('Search')"
@input="searchAuthors" @input="searchAuthors"
/> />
......
...@@ -139,7 +139,6 @@ export default { ...@@ -139,7 +139,6 @@ export default {
<gl-search-box-by-type <gl-search-box-by-type
ref="searchBox" ref="searchBox"
v-model.trim="query" v-model.trim="query"
class="gl-m-3"
:placeholder="i18n.searchPlaceholder" :placeholder="i18n.searchPlaceholder"
@input="onSearchBoxInput" @input="onSearchBoxInput"
@keydown.enter.prevent="onSearchBoxEnter" @keydown.enter.prevent="onSearchBoxEnter"
......
...@@ -72,12 +72,7 @@ export default { ...@@ -72,12 +72,7 @@ export default {
css-class="deploy-link js-deploy-url inline" css-class="deploy-link js-deploy-url inline"
/> />
<gl-dropdown size="small" class="js-mr-wigdet-deployment-dropdown"> <gl-dropdown size="small" class="js-mr-wigdet-deployment-dropdown">
<gl-search-box-by-type <gl-search-box-by-type v-model.trim="searchTerm" v-autofocusonshow autofocus />
v-model.trim="searchTerm"
v-autofocusonshow
autofocus
class="gl-m-3"
/>
<gl-dropdown-item <gl-dropdown-item
v-for="change in filteredChanges" v-for="change in filteredChanges"
:key="change.path" :key="change.path"
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
<gl-icon name="chevron-down" /> <gl-icon name="chevron-down" />
</template> </template>
<gl-search-box-by-type v-model.trim="searchTerm" v-autofocusonshow autofocus class="gl-m-3" /> <gl-search-box-by-type v-model.trim="searchTerm" v-autofocusonshow autofocus />
<gl-deprecated-dropdown-item <gl-deprecated-dropdown-item
v-for="timezone in filteredResults" v-for="timezone in filteredResults"
:key="timezone.formattedTimezone" :key="timezone.formattedTimezone"
......
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
<gl-dropdown-section-header>{{ __('Select a label') }} </gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Select a label') }} </gl-dropdown-section-header>
</slot> </slot>
<div class="mb-3 px-3"> <div class="mb-3 px-3">
<gl-search-box-by-type v-model.trim="searchTerm" class="mb-2" /> <gl-search-box-by-type v-model.trim="searchTerm" />
</div> </div>
<div class="mb-3 px-3"> <div class="mb-3 px-3">
<gl-dropdown-item <gl-dropdown-item
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
<gl-dropdown-section-header> <gl-dropdown-section-header>
{{ $options.text.projectDropdownHeader }} {{ $options.text.projectDropdownHeader }}
</gl-dropdown-section-header> </gl-dropdown-section-header>
<gl-search-box-by-type v-model.trim="projectSearchTerm" class="gl-my-2 gl-mx-3" /> <gl-search-box-by-type v-model.trim="projectSearchTerm" />
<gl-dropdown-item <gl-dropdown-item
:is-check-item="true" :is-check-item="true"
:is-checked="selectAllProjects" :is-checked="selectAllProjects"
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
<gl-icon class="gl-ml-2" name="chevron-down" /> <gl-icon class="gl-ml-2" name="chevron-down" />
</template> </template>
<gl-dropdown-section-header>{{ __('Groups') }}</gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Groups') }}</gl-dropdown-section-header>
<gl-search-box-by-type v-model.trim="searchTerm" class="gl-m-3" /> <gl-search-box-by-type v-model.trim="searchTerm" />
<gl-dropdown-item <gl-dropdown-item
v-for="group in availableGroups" v-for="group in availableGroups"
:key="group.id" :key="group.id"
......
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
<gl-icon class="gl-ml-2" name="chevron-down" /> <gl-icon class="gl-ml-2" name="chevron-down" />
</template> </template>
<gl-dropdown-section-header>{{ __('Projects') }}</gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Projects') }}</gl-dropdown-section-header>
<gl-search-box-by-type v-model.trim="searchTerm" class="gl-m-3" /> <gl-search-box-by-type v-model.trim="searchTerm" />
<gl-dropdown-item <gl-dropdown-item
v-for="project in availableProjects" v-for="project in availableProjects"
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
<template> <template>
<gl-dropdown :text="dropdownTitle" @show="fetchSyncNamespaces('')"> <gl-dropdown :text="dropdownTitle" @show="fetchSyncNamespaces('')">
<gl-search-box-by-type class=".gl-m-3" :debounce="500" @input="fetchSyncNamespaces" /> <gl-search-box-by-type :debounce="500" @input="fetchSyncNamespaces" />
<button <button
v-for="namespace in synchronizationNamespaces" v-for="namespace in synchronizationNamespaces"
:key="namespace.id" :key="namespace.id"
......
...@@ -90,7 +90,6 @@ export default { ...@@ -90,7 +90,6 @@ export default {
v-if="filter.options.length >= 20" v-if="filter.options.length >= 20"
ref="searchBox" ref="searchBox"
v-model="filterTerm" v-model="filterTerm"
class="gl-m-3"
:placeholder="__('Filter...')" :placeholder="__('Filter...')"
/> />
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
<gl-dropdown-section-header class="d-flex justify-content-center">{{ <gl-dropdown-section-header class="d-flex justify-content-center">{{
__('Assign Iteration') __('Assign Iteration')
}}</gl-dropdown-section-header> }}</gl-dropdown-section-header>
<gl-search-box-by-type ref="search" v-model="searchTerm" class="gl-m-3" /> <gl-search-box-by-type ref="search" v-model="searchTerm" />
<gl-dropdown-item <gl-dropdown-item
v-for="iterationItem in iterations" v-for="iterationItem in iterations"
:key="iterationItem.id" :key="iterationItem.id"
......
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
data-track-label="review_app" data-track-label="review_app"
@click="ok" @click="ok"
> >
<gl-search-box-by-type v-model.trim="changesSearchTerm" class="gl-m-3" /> <gl-search-box-by-type v-model.trim="changesSearchTerm" />
<template #button-content> <template #button-content>
{{ s__('VisualReviewApp|Open review app') }} {{ s__('VisualReviewApp|Open review app') }}
<gl-icon class="fgray" name="external-link" /> <gl-icon class="fgray" name="external-link" />
......
...@@ -4,7 +4,7 @@ exports[`Value Stream Analytics LabelsSelector with no item selected will render ...@@ -4,7 +4,7 @@ exports[`Value Stream Analytics LabelsSelector with no item selected will render
"<gl-dropdown-stub headertext=\\"\\" text=\\"\\" category=\\"tertiary\\" variant=\\"default\\" size=\\"medium\\" toggleclass=\\"gl-overflow-hidden\\" class=\\"gl-w-full\\"> "<gl-dropdown-stub headertext=\\"\\" text=\\"\\" category=\\"tertiary\\" variant=\\"default\\" size=\\"medium\\" toggleclass=\\"gl-overflow-hidden\\" class=\\"gl-w-full\\">
<gl-dropdown-section-header-stub>Select a label </gl-dropdown-section-header-stub> <gl-dropdown-section-header-stub>Select a label </gl-dropdown-section-header-stub>
<div class=\\"mb-3 px-3\\"> <div class=\\"mb-3 px-3\\">
<gl-search-box-by-type-stub value=\\"\\" clearbuttontitle=\\"Clear\\" class=\\"mb-2\\"></gl-search-box-by-type-stub> <gl-search-box-by-type-stub value=\\"\\" clearbuttontitle=\\"Clear\\"></gl-search-box-by-type-stub>
</div> </div>
<div class=\\"mb-3 px-3\\"> <div class=\\"mb-3 px-3\\">
<gl-dropdown-item-stub avatarurl=\\"\\" iconcolor=\\"\\" iconname=\\"\\" iconrightname=\\"\\" secondarytext=\\"\\" class=\\"\\"> <gl-dropdown-item-stub avatarurl=\\"\\" iconcolor=\\"\\" iconname=\\"\\" iconrightname=\\"\\" secondarytext=\\"\\" class=\\"\\">
...@@ -33,7 +33,7 @@ exports[`Value Stream Analytics LabelsSelector with selectedLabelId set will ren ...@@ -33,7 +33,7 @@ exports[`Value Stream Analytics LabelsSelector with selectedLabelId set will ren
"<gl-dropdown-stub headertext=\\"\\" text=\\"\\" category=\\"tertiary\\" variant=\\"default\\" size=\\"medium\\" toggleclass=\\"gl-overflow-hidden\\" class=\\"gl-w-full\\"> "<gl-dropdown-stub headertext=\\"\\" text=\\"\\" category=\\"tertiary\\" variant=\\"default\\" size=\\"medium\\" toggleclass=\\"gl-overflow-hidden\\" class=\\"gl-w-full\\">
<gl-dropdown-section-header-stub>Select a label </gl-dropdown-section-header-stub> <gl-dropdown-section-header-stub>Select a label </gl-dropdown-section-header-stub>
<div class=\\"mb-3 px-3\\"> <div class=\\"mb-3 px-3\\">
<gl-search-box-by-type-stub value=\\"\\" clearbuttontitle=\\"Clear\\" class=\\"mb-2\\"></gl-search-box-by-type-stub> <gl-search-box-by-type-stub value=\\"\\" clearbuttontitle=\\"Clear\\"></gl-search-box-by-type-stub>
</div> </div>
<div class=\\"mb-3 px-3\\"> <div class=\\"mb-3 px-3\\">
<gl-dropdown-item-stub avatarurl=\\"\\" iconcolor=\\"\\" iconname=\\"\\" iconrightname=\\"\\" secondarytext=\\"\\" class=\\"\\"> <gl-dropdown-item-stub avatarurl=\\"\\" iconcolor=\\"\\" iconname=\\"\\" iconrightname=\\"\\" secondarytext=\\"\\" class=\\"\\">
......
...@@ -114,7 +114,7 @@ exports[`JiraImportForm table body shows correct information in each cell 1`] = ...@@ -114,7 +114,7 @@ exports[`JiraImportForm table body shows correct information in each cell 1`] =
<!----> <!---->
<div <div
class="gl-search-box-by-type gl-m-3" class="gl-search-box-by-type"
> >
<svg <svg
class="gl-search-box-by-type-search-icon gl-icon s16" class="gl-search-box-by-type-search-icon gl-icon s16"
...@@ -225,7 +225,7 @@ exports[`JiraImportForm table body shows correct information in each cell 1`] = ...@@ -225,7 +225,7 @@ exports[`JiraImportForm table body shows correct information in each cell 1`] =
<!----> <!---->
<div <div
class="gl-search-box-by-type gl-m-3" class="gl-search-box-by-type"
> >
<svg <svg
class="gl-search-box-by-type-search-icon gl-icon s16" class="gl-search-box-by-type-search-icon gl-icon s16"
......
...@@ -52,7 +52,6 @@ exports[`Dashboard template matches the default snapshot 1`] = ` ...@@ -52,7 +52,6 @@ exports[`Dashboard template matches the default snapshot 1`] = `
</gl-dropdown-section-header-stub> </gl-dropdown-section-header-stub>
<gl-search-box-by-type-stub <gl-search-box-by-type-stub
class="gl-m-3"
clearbuttontitle="Clear" clearbuttontitle="Clear"
value="" value=""
/> />
......
...@@ -866,10 +866,10 @@ ...@@ -866,10 +866,10 @@
resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.171.0.tgz#abc3092bf804f0898301626130e0f3231834924a" resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.171.0.tgz#abc3092bf804f0898301626130e0f3231834924a"
integrity sha512-TPfdqIxQDda+0CQHhb9XdF50lmqDmADu6yT8R4oZi6BoUtWLdiHbyFt+RnVU6t7EmjIKicNAii7Ga+f2ljCfUA== integrity sha512-TPfdqIxQDda+0CQHhb9XdF50lmqDmADu6yT8R4oZi6BoUtWLdiHbyFt+RnVU6t7EmjIKicNAii7Ga+f2ljCfUA==
"@gitlab/ui@21.29.0": "@gitlab/ui@21.30.1":
version "21.29.0" version "21.30.1"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-21.29.0.tgz#598ac5265aa39db4f63a1c7801df322c1234eaa2" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-21.30.1.tgz#561bd10c5264e48d16be4c5706827f40ec31286f"
integrity sha512-sGsL1YmKUJAUEVAKwq+9Km2qOpiTf+We7o7az8fBcN+PKaGWfPhEXLskCwToky7mwuKBBTpwX2qdf+7lk/iu7A== integrity sha512-JdLA8x7fOk1qgsqBeNhlmg1VTJIrl+ECWea8whoyqWnI95GPuiM5ZSnehZHA6FoNwB9n/u1GnVSLCHcqvHZW0w==
dependencies: dependencies:
"@babel/standalone" "^7.0.0" "@babel/standalone" "^7.0.0"
"@gitlab/vue-toasted" "^1.3.0" "@gitlab/vue-toasted" "^1.3.0"
......
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