From 9c555e70c98b388a7be929e8fe683236be63629a Mon Sep 17 00:00:00 2001 From: Nithin David Thomas Date: Thu, 27 May 2021 08:24:29 +0530 Subject: [PATCH] fix: Uses label component for add label button (#2337) * fix: Uses label component for add label button * Use button instead of span --- .../dashboard/components/ui/Label.vue | 6 +++- .../components/ui/dropdown/AddLabel.vue | 32 +++++++++---------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/app/javascript/dashboard/components/ui/Label.vue b/app/javascript/dashboard/components/ui/Label.vue index 14376d530..5415444d2 100644 --- a/app/javascript/dashboard/components/ui/Label.vue +++ b/app/javascript/dashboard/components/ui/Label.vue @@ -52,7 +52,11 @@ export default { }, labelStyle() { if (this.bgColor) { - return { background: this.bgColor, color: this.textColor }; + return { + background: this.bgColor, + color: this.textColor, + border: `1px solid ${this.bgColor}`, + }; } return {}; }, diff --git a/app/javascript/shared/components/ui/dropdown/AddLabel.vue b/app/javascript/shared/components/ui/dropdown/AddLabel.vue index 4702e6805..4254749c1 100644 --- a/app/javascript/shared/components/ui/dropdown/AddLabel.vue +++ b/app/javascript/shared/components/ui/dropdown/AddLabel.vue @@ -1,20 +1,17 @@