From 7e186091ff3e07303124fe138181eabfb74a5172 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 7 Feb 2024 16:45:47 +1100 Subject: [PATCH] Ensure un-changed field error state shows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When there is a required field that can't be empty. I knew these complex styles would come back to bite me. ◉ Best viewed with whitespace ignored --- app/webpacker/css/admin/products_v3.scss | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/webpacker/css/admin/products_v3.scss b/app/webpacker/css/admin/products_v3.scss index 64287a939f..731f487dba 100644 --- a/app/webpacker/css/admin/products_v3.scss +++ b/app/webpacker/css/admin/products_v3.scss @@ -165,20 +165,18 @@ } // "Naked" inputs. Row hover helps reveal them. - tbody input:not([type="checkbox"]) { - background-color: $color-tbl-cell-bg; - height: auto; - font-size: inherit; - font-weight: inherit; - - &:not(:focus):not(.changed):not([disabled]) { - border-color: transparent; + tbody { + input:not([type="checkbox"]) { + background-color: $color-tbl-cell-bg; + height: auto; + font-size: inherit; + font-weight: inherit; } - } - .field_with_errors { - input { - border-color: $color-error; + :not(.field_with_errors) > { + input:not([type="checkbox"]):not(:focus):not(.changed):not([disabled]) { + border-color: transparent; + } } } }