diff --git a/assets/styles/base/_mixins.scss b/assets/styles/base/_mixins.scss index bd12c836f6..7525b76364 100755 --- a/assets/styles/base/_mixins.scss +++ b/assets/styles/base/_mixins.scss @@ -119,3 +119,40 @@ -ms-transform: scale($horiz, $vert); transform: scale($horiz, $vert); } + +@mixin input-status-color { + &:not(.focused) { + &.success { + border: solid 1px var(--success); + input, .selected { + color: var(--success); + } + + .vs__actions:after { + color: var(--success); + } + } + + &.warning { + border: solid 1px var(--warning); + input, .selected { + color: var(--warning); + } + + .vs__actions:after { + color: var(--warning); + } + } + + &.error { + border: solid 1px var(--error); + input, .selected { + color: var(--error); + } + + .vs__actions:after { + color: var(--error); + } + } + } +} \ No newline at end of file diff --git a/assets/styles/global/_form.scss b/assets/styles/global/_form.scss index 7605bf2fc7..bab88c991a 100644 --- a/assets/styles/global/_form.scss +++ b/assets/styles/global/_form.scss @@ -24,40 +24,7 @@ TEXTAREA, border: solid var(--outline-width) var(--input-border); color: var(--input-text); - &:not(.focused) { - &.success { - border: solid 1px var(--success); - input, .selected { - color: var(--success); - } - - .vs__actions:after { - color: var(--success); - } - } - - &.warning { - border: solid 1px var(--warning); - input, .selected { - color: var(--warning); - } - - .vs__actions:after { - color: var(--warning); - } - } - - &.error { - border: solid 1px var(--error); - input, .selected { - color: var(--error); - } - - .vs__actions:after { - color: var(--error); - } - } - } + @include input-status-color; &:not(.view) { &:hover { diff --git a/assets/translations/en-us.yaml b/assets/translations/en-us.yaml index 6c085e5742..3ae2a28660 100644 --- a/assets/translations/en-us.yaml +++ b/assets/translations/en-us.yaml @@ -668,7 +668,7 @@ labels: addLabel: Add Label addSetLabel: Add/Set Label addAnnotation: Add Annotation - label: + labels: title: Labels annotations: title: Annotations diff --git a/components/form/ArrayList.vue b/components/form/ArrayList.vue index ecd39c0373..465a4aabae 100644 --- a/components/form/ArrayList.vue +++ b/components/form/ArrayList.vue @@ -13,7 +13,7 @@ import { clone } from '@/utils/object'; - Concealed value */ -const DEFAULT_PROTIP = 'ProTip: Paste lines into any list field for easy bulk entry'; +const DEFAULT_PROTIP = 'Paste lines into any list field for easy bulk entry'; export default { components: { TextAreaAutoGrow }, @@ -337,7 +337,7 @@ export default { .value { flex: 1; INPUT { - height: 50px; + height: $input-height; } } } diff --git a/components/form/ArrayListGrouped.vue b/components/form/ArrayListGrouped.vue index 6747f649ab..8febea34a2 100644 --- a/components/form/ArrayListGrouped.vue +++ b/components/form/ArrayListGrouped.vue @@ -7,7 +7,7 @@ export default { components: { ArrayList, InfoBox } }; -