Commit f322f4c1 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'gitlab-ui-integration-1232-remove-deprecated-icon-sizes-and-validator' into 'master'

Add `use-deprecated-sizes` to icons that use deprecated sizes

See merge request gitlab-org/gitlab!55638
parents 777387f4 ae567a6b
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
<gl-icon <gl-icon
:name="icon.name" :name="icon.name"
:size="18" :size="18"
use-deprecated-sizes
:class="icon.classes" :class="icon.classes"
data-qa-selector="design_status_icon" data-qa-selector="design_status_icon"
:data-qa-status="icon.name" :data-qa-status="icon.name"
......
...@@ -21,5 +21,7 @@ export default { ...@@ -21,5 +21,7 @@ export default {
</script> </script>
<template> <template>
<span class="folder-caret gl-mr-2"> <gl-icon :size="10" :name="iconClass" /> </span> <span class="folder-caret gl-mr-2">
<gl-icon :size="10" :name="iconClass" use-deprecated-sizes />
</span>
</template> </template>
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
<template> <template>
<a :href="branchHref" class="btn-link d-flex align-items-center"> <a :href="branchHref" class="btn-link d-flex align-items-center">
<span class="d-flex gl-mr-3 ide-search-list-current-icon"> <span class="d-flex gl-mr-3 ide-search-list-current-icon">
<gl-icon v-if="isActive" :size="18" name="mobile-issue-close" /> <gl-icon v-if="isActive" :size="18" name="mobile-issue-close" use-deprecated-sizes />
</span> </span>
<span> <span>
<strong> {{ item.name }} </strong> <strong> {{ item.name }} </strong>
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
class="form-control dropdown-input-field" class="form-control dropdown-input-field"
@input="searchBranches" @input="searchBranches"
/> />
<gl-icon :size="18" name="search" class="ml-3 input-icon" /> <gl-icon :size="18" name="search" class="ml-3 input-icon" use-deprecated-sizes />
</label> </label>
<div class="dropdown-content ide-merge-requests-dropdown-content d-flex"> <div class="dropdown-content ide-merge-requests-dropdown-content d-flex">
<gl-loading-icon <gl-loading-icon
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
<template> <template>
<a :href="mergeRequestHref" class="btn-link d-flex align-items-center"> <a :href="mergeRequestHref" class="btn-link d-flex align-items-center">
<span class="d-flex gl-mr-3 ide-search-list-current-icon"> <span class="d-flex gl-mr-3 ide-search-list-current-icon">
<gl-icon v-if="isActive" :size="18" name="mobile-issue-close" /> <gl-icon v-if="isActive" :size="18" name="mobile-issue-close" use-deprecated-sizes />
</span> </span>
<span> <span>
<strong> {{ item.title }} </strong> <strong> {{ item.title }} </strong>
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
@input="searchMergeRequests" @input="searchMergeRequests"
@removeToken="setSearchType(null)" @removeToken="setSearchType(null)"
/> />
<gl-icon :size="18" name="search" class="ml-3 input-icon" /> <gl-icon :size="18" name="search" class="ml-3 input-icon" use-deprecated-sizes />
</label> </label>
<div class="dropdown-content ide-merge-requests-dropdown-content d-flex"> <div class="dropdown-content ide-merge-requests-dropdown-content d-flex">
<gl-loading-icon <gl-loading-icon
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
@click.stop="setSearchType(searchType)" @click.stop="setSearchType(searchType)"
> >
<span class="d-flex gl-mr-3 ide-search-list-current-icon"> <span class="d-flex gl-mr-3 ide-search-list-current-icon">
<gl-icon :size="18" name="search" /> <gl-icon :size="18" name="search" use-deprecated-sizes />
</span> </span>
<span>{{ searchType.label }}</span> <span>{{ searchType.label }}</span>
</button> </button>
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
class="ide-navigator-btn d-flex align-items-center d-transparent border-0 bg-transparent" class="ide-navigator-btn d-flex align-items-center d-transparent border-0 bg-transparent"
@click="refresh" @click="refresh"
> >
<gl-icon :size="18" name="retry" class="m-auto" /> <gl-icon :size="18" name="retry" use-deprecated-sizes class="m-auto" />
</button> </button>
<div class="position-relative w-100 gl-ml-2"> <div class="position-relative w-100 gl-ml-2">
<input <input
......
...@@ -81,7 +81,9 @@ export default { ...@@ -81,7 +81,9 @@ export default {
> >
<div class="value-container rounded"> <div class="value-container rounded">
<div class="value">{{ token.label }}</div> <div class="value">{{ token.label }}</div>
<div class="remove-token inverted"><gl-icon :size="10" name="close" /></div> <div class="remove-token inverted">
<gl-icon :size="10" name="close" use-deprecated-sizes />
</div>
</div> </div>
</button> </button>
</div> </div>
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
</gl-alert> </gl-alert>
<div v-else> <div v-else>
<div class="gl-display-flex gl-align-items-center"> <div class="gl-display-flex gl-align-items-center">
<gl-icon :size="18" name="lock" class="gl-text-gray-500 gl-mr-3" /> <gl-icon :size="18" name="lock" use-deprecated-sizes class="gl-text-gray-500 gl-mr-3" />
{{ $options.i18n.viewOnlyMessage }} {{ $options.i18n.viewOnlyMessage }}
</div> </div>
<div class="gl-mt-3 gl-border-solid gl-border-gray-100 gl-border-1"> <div class="gl-mt-3 gl-border-solid gl-border-gray-100 gl-border-1">
......
...@@ -82,7 +82,13 @@ export default { ...@@ -82,7 +82,13 @@ export default {
data-qa-selector="changed_file_icon_content" data-qa-selector="changed_file_icon_content"
:data-qa-title="tooltipTitle" :data-qa-title="tooltipTitle"
> >
<gl-icon v-if="showIcon" :name="changedIcon" :size="size" :class="changedIconClass" /> <gl-icon
v-if="showIcon"
:name="changedIcon"
:size="size"
:class="changedIconClass"
use-deprecated-sizes
/>
</span> </span>
</template> </template>
......
...@@ -64,6 +64,12 @@ export default { ...@@ -64,6 +64,12 @@ export default {
</script> </script>
<template> <template>
<span :class="cssClass"> <span :class="cssClass">
<gl-icon :name="icon" :size="size" :class="cssClasses" :aria-label="status.icon" /> <gl-icon
:name="icon"
:size="size"
:class="cssClasses"
:aria-label="status.icon"
use-deprecated-sizes
/>
</span> </span>
</template> </template>
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
<template> <template>
<span> <span>
<gl-loading-icon v-if="loading" :inline="true" /> <gl-loading-icon v-if="loading" :inline="true" />
<gl-icon v-else-if="isSymlink" name="symlink" :size="size" /> <gl-icon v-else-if="isSymlink" name="symlink" :size="size" use-deprecated-sizes />
<svg v-else-if="!folder" :key="spriteHref" :class="[iconSizeClass, cssClasses]"> <svg v-else-if="!folder" :key="spriteHref" :class="[iconSizeClass, cssClasses]">
<use v-bind="{ 'xlink:href': spriteHref }" /> <use v-bind="{ 'xlink:href': spriteHref }" />
</svg> </svg>
...@@ -95,6 +95,7 @@ export default { ...@@ -95,6 +95,7 @@ export default {
:name="folderIconName" :name="folderIconName"
:size="size" :size="size"
class="folder-icon" class="folder-icon"
use-deprecated-sizes
data-qa-selector="folder_icon_content" data-qa-selector="folder_icon_content"
/> />
</span> </span>
......
...@@ -144,7 +144,12 @@ export default { ...@@ -144,7 +144,12 @@ export default {
{{ displayError }} {{ displayError }}
</gl-alert> </gl-alert>
<gl-form-group class="gl-mb-3" data-testid="filter"> <gl-form-group class="gl-mb-3" data-testid="filter">
<gl-icon name="search" :size="18" class="gl-text-gray-300 gl-absolute gl-mt-3 gl-ml-3" /> <gl-icon
name="search"
:size="18"
use-deprecated-sizes
class="gl-text-gray-300 gl-absolute gl-mt-3 gl-ml-3"
/>
<gl-form-input <gl-form-input
v-model="filter" v-model="filter"
class="gl-pl-7!" class="gl-pl-7!"
......
...@@ -150,6 +150,7 @@ export default { ...@@ -150,6 +150,7 @@ export default {
<gl-icon <gl-icon
name="warning" name="warning"
:size="18" :size="18"
use-deprecated-sizes
class="cluster-deployments-warning mr-2 align-self-center flex-shrink-0" class="cluster-deployments-warning mr-2 align-self-center flex-shrink-0"
/> />
<span> <span>
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
class="ml-2 text-warning-500" class="ml-2 text-warning-500"
name="warning" name="warning"
:size="18" :size="18"
use-deprecated-sizes
:title=" :title="
s__( s__(
'GeoNodes|You have configured Geo nodes using an insecure HTTP connection. We recommend the use of HTTPS.', 'GeoNodes|You have configured Geo nodes using an insecure HTTP connection. We recommend the use of HTTPS.',
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
</div> </div>
<div class="table-mobile-content gl-display-flex gl-align-items-center"> <div class="table-mobile-content gl-display-flex gl-align-items-center">
<div class="gl-display-flex gl-mr-3 gl-align-items-center"> <div class="gl-display-flex gl-mr-3 gl-align-items-center">
<gl-icon :size="10" :name="iconName" class="gl-mr-2" /> <gl-icon :size="10" :name="iconName" use-deprecated-sizes class="gl-mr-2" />
<gl-icon name="bookmark" /> <gl-icon name="bookmark" />
</div> </div>
<div> <div>
......
...@@ -25,6 +25,7 @@ export default { ...@@ -25,6 +25,7 @@ export default {
:size="18" :size="18"
:aria-label="title" :aria-label="title"
name="check-circle" name="check-circle"
use-deprecated-sizes
/> />
<h5 class="gl-mt-0 gl-mb-3">{{ title }}</h5> <h5 class="gl-mt-0 gl-mb-3">{{ title }}</h5>
</div> </div>
......
...@@ -47,8 +47,8 @@ export default { ...@@ -47,8 +47,8 @@ export default {
<div @click="toggleCollapse"> <div @click="toggleCollapse">
<h4 class="d-flex justify-content-between gl-font-lg" :class="{ 'gl-mb-7': !collapsed }"> <h4 class="d-flex justify-content-between gl-font-lg" :class="{ 'gl-mb-7': !collapsed }">
<div class="d-flex"> <div class="d-flex">
<gl-icon v-if="collapsed" name="chevron-right" :size="18" /> <gl-icon v-if="collapsed" name="chevron-right" :size="18" use-deprecated-sizes />
<gl-icon v-else name="chevron-down" :size="18" /> <gl-icon v-else name="chevron-down" :size="18" use-deprecated-sizes />
<div>{{ titleWithName }}</div> <div>{{ titleWithName }}</div>
</div> </div>
<div class="gl-ml-3">{{ formatAmount(totalAmount, usersPresent) }}</div> <div class="gl-ml-3">{{ formatAmount(totalAmount, usersPresent) }}</div>
......
...@@ -907,10 +907,10 @@ ...@@ -907,10 +907,10 @@
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@28.1.0": "@gitlab/ui@28.6.0":
version "28.1.0" version "28.6.0"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-28.1.0.tgz#aaec227c03c345632bcb2bc6222ed49a004b2dbd" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-28.6.0.tgz#dae21f072cbf898bfa87dcefbef951c2811ecba0"
integrity sha512-V4AH41sRVPp4gOSNt/safVbmsF8RS7H49JuaMWtOkNqfc90ePW+OGyv5ioCYDMYLvk8BaGlmH8f01BuCgOrplA== integrity sha512-6LvPoQbSzbY9kmP3y84eQj48w6XzgLktSBX0NM2IB3/sZzEtFlpLpnqmv6cWhS2V1HAM7xW6nLZ4SGyM3JRhvA==
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