Commit dd442176 authored by Filipa Lacerda's avatar Filipa Lacerda

Simplifies HTML & CSS after code review

parent 65e7054f
...@@ -803,25 +803,16 @@ ...@@ -803,25 +803,16 @@
} }
} }
.mr-widget-code-quality-icon {
li.success { fill: currentColor;
.mr-widget-code-quality-title {
color: $green-500;
}
.mr-widget-code-quality-icon svg {
fill: $green-500;
}
} }
li.failed { .success {
.mr-widget-code-quality-title { color: $green-500;
color: $red-500; }
}
.mr-widget-code-quality-icon svg { .failed {
fill: $red-500; color: $red-500;
}
} }
} }
} }
......
...@@ -132,10 +132,7 @@ export default { ...@@ -132,10 +132,7 @@ export default {
v-if="isLoading" v-if="isLoading"
class="media"> class="media">
<div class="mr-widget-icon"> <div class="mr-widget-icon">
<i <loading-icon />
class="fa fa-spinner fa-spin"
aria-hidden="true">
</i>
</div> </div>
<div class="media-body"> <div class="media-body">
Loading codeclimate report Loading codeclimate report
......
...@@ -14,11 +14,8 @@ ...@@ -14,11 +14,8 @@
}, },
}, },
computed: { computed: {
plusIcon() { icon() {
return spriteIcon('plus'); return this.isTypeFailed ? spriteIcon('cut') : spriteIcon('plus');
},
minusIcon() {
return spriteIcon('cut');
}, },
isTypeFailed() { isTypeFailed() {
return this.type === 'failed'; return this.type === 'failed';
...@@ -39,22 +36,10 @@ ...@@ -39,22 +36,10 @@
"v-for="issue in issues"> "v-for="issue in issues">
<span <span
class="mr-widget-code-quality-icon" class="mr-widget-code-quality-icon"
v-if="isTypeFailed" v-html="icon">
v-html="minusIcon">
</span>
<span
class="mr-widget-code-quality-icon"
v-else-if="isTypeSuccess"
v-html="plusIcon">
</span>
<span
class="mr-widget-code-quality-title"
v-if="isTypeSuccess">
Fixed:
</span>
<span class="mr-widget-code-quality-title">
{{issue.check_name}}
</span> </span>
<template v-if="isTypeSuccess">Fixed:</template>
{{issue.check_name}}
<template v-if="issue.location.path">in</template> <template v-if="issue.location.path">in</template>
<a <a
:href="issue.location.urlPath" :href="issue.location.urlPath"
......
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