From 1e59fd785880388a34be69601414ac5feeadbbf1 Mon Sep 17 00:00:00 2001 From: cipchk Date: Mon, 29 Oct 2018 19:41:19 +0800 Subject: [PATCH] fix(module:theme): fix ng-invalid style --- packages/theme/styles/app/widgets/form.less | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/theme/styles/app/widgets/form.less b/packages/theme/styles/app/widgets/form.less index 43190fa57..b23776fb0 100644 --- a/packages/theme/styles/app/widgets/form.less +++ b/packages/theme/styles/app/widgets/form.less @@ -7,15 +7,13 @@ } .form-state-visual-feedback-mixin(@enabled) when(@enabled = true) { - .ng-invalid:not(form) { - input { - &:focus { - box-shadow: 0 0 @outline-blur-size @outline-width fade-out(@error-color, .8); - } - &, - &:hover { - border-color: @error-color; - } + .ng-invalid { + &:focus { + box-shadow: 0 0 @outline-blur-size @outline-width fade-out(@error-color, .8); + } + &, + &:hover { + border-color: @error-color; } } }