From 4c7f97fc0e72b4f1e60e5e6262f82686565a0720 Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Mon, 5 Apr 2021 18:10:56 +0000 Subject: [PATCH] Remove placeholder background --- src/components/Input/SInput.vue | 3 +++ src/styles/input.scss | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Input/SInput.vue b/src/components/Input/SInput.vue index 0f6d5bba..e80d1ffd 100644 --- a/src/components/Input/SInput.vue +++ b/src/components/Input/SInput.vue @@ -182,6 +182,9 @@ export default class SInput extends Mixins(BorderRadiusMixin) { if (this.type === InputType.TEXT_FILE) { cssClasses.push('s-text-file') } + if (this.type === InputType.TEXTAREA) { + cssClasses.push('s-textarea') + } if (this.autofill) { cssClasses.push('s-autofill') } diff --git a/src/styles/input.scss b/src/styles/input.scss index 54ef7e7c..35cf091b 100644 --- a/src/styles/input.scss +++ b/src/styles/input.scss @@ -112,7 +112,7 @@ border-color: var(--s-color-base-disabled); } } - &.s-autofill { + &:not(.s-textarea) { .s-placeholder { background-color: transparent !important; }