Commit 1e363865 authored by Miguel Rincon's avatar Miguel Rincon

Remove "borderless" in MR Widget CI Icon

As having both `borderless` and `.add-border` class in the same element
is contradictory, this change removed both from the MR widget icon.

The appearance is almost the same, however, as the circle border
is shown by the icon svg.
parent 90d65ded
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
<div role="rowheader" class="table-mobile-header">{{ __('Status') }}</div> <div role="rowheader" class="table-mobile-header">{{ __('Status') }}</div>
<div class="table-mobile-content text-center"> <div class="table-mobile-content text-center">
<div <div
class="add-border ci-status-icon d-flex align-items-center justify-content-end justify-content-md-center" class="ci-status-icon d-flex align-items-center justify-content-end justify-content-md-center"
:class="`ci-status-icon-${testCase.status}`" :class="`ci-status-icon-${testCase.status}`"
> >
<gl-icon :size="24" :name="testCase.icon" /> <gl-icon :size="24" :name="testCase.icon" />
......
...@@ -4,16 +4,16 @@ import { TestStatus } from '../../constants'; ...@@ -4,16 +4,16 @@ import { TestStatus } from '../../constants';
export function iconForTestStatus(status) { export function iconForTestStatus(status) {
switch (status) { switch (status) {
case TestStatus.SUCCESS: case TestStatus.SUCCESS:
return 'status_success_borderless'; return 'status_success';
case TestStatus.FAILED: case TestStatus.FAILED:
return 'status_failed_borderless'; return 'status_failed';
case TestStatus.ERROR: case TestStatus.ERROR:
return 'status_warning_borderless'; return 'status_warning';
case TestStatus.SKIPPED: case TestStatus.SKIPPED:
return 'status_skipped_borderless'; return 'status_skipped';
case TestStatus.UNKNOWN: case TestStatus.UNKNOWN:
default: default:
return 'status_notfound_borderless'; return 'status_notfound';
} }
} }
......
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
</template> </template>
<template v-else-if="hasPipeline"> <template v-else-if="hasPipeline">
<a :href="status.details_path" class="align-self-start gl-mr-3"> <a :href="status.details_path" class="align-self-start gl-mr-3">
<ci-icon :status="status" :size="24" :borderless="true" class="add-border" /> <ci-icon :status="status" :size="24" />
</a> </a>
<div class="ci-widget-container d-flex"> <div class="ci-widget-container d-flex">
<div class="ci-widget-content"> <div class="ci-widget-content">
......
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
svg { svg {
fill: $green-500; fill: $green-500;
} }
&.add-border {
@include borderless-status-icon($green-500);
}
} }
.ci-status-icon-error, .ci-status-icon-error,
...@@ -14,10 +10,6 @@ ...@@ -14,10 +10,6 @@
svg { svg {
fill: $red-500; fill: $red-500;
} }
&.add-border {
@include borderless-status-icon($red-500);
}
} }
.ci-status-icon-pending, .ci-status-icon-pending,
...@@ -27,31 +19,21 @@ ...@@ -27,31 +19,21 @@
svg { svg {
fill: $orange-500; fill: $orange-500;
} }
&.add-border {
@include borderless-status-icon($orange-500);
}
} }
.ci-status-icon-running { .ci-status-icon-running {
svg { svg {
fill: $blue-400; fill: $blue-400;
} }
&.add-border {
@include borderless-status-icon($blue-400);
}
} }
.ci-status-icon-canceled, .ci-status-icon-canceled,
.ci-status-icon-disabled { .ci-status-icon-disabled,
.ci-status-icon-scheduled,
.ci-status-icon-manual {
svg { svg {
fill: $gl-text-color; fill: $gl-text-color;
} }
&.add-border {
@include borderless-status-icon($gl-text-color);
}
} }
.ci-status-icon-preparing, .ci-status-icon-preparing,
...@@ -61,17 +43,6 @@ ...@@ -61,17 +43,6 @@
svg { svg {
fill: var(--gray-400, $gray-400); fill: var(--gray-400, $gray-400);
} }
&.add-border {
@include borderless-status-icon(var(--gray-400, $gray-400));
}
}
.ci-status-icon-scheduled,
.ci-status-icon-manual {
svg {
fill: $gl-text-color;
}
} }
.icon-link { .icon-link {
......
...@@ -354,13 +354,6 @@ ...@@ -354,13 +354,6 @@
} }
} }
@mixin borderless-status-icon($color) {
svg {
border: 1px solid $color;
border-radius: 50%;
}
}
@mixin emoji-menu-toggle-button { @mixin emoji-menu-toggle-button {
line-height: 1; line-height: 1;
padding: 0; padding: 0;
......
---
title: Make CI Icon in merge request pipeline detail consistent with other widget
icons
merge_request: 52516
author:
type: fixed
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