diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-20 16:42:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-20 16:42:21 +0200 |
commit | 75084782b767f51f6158ada1984cf339c6302960 (patch) | |
tree | 178904ed08269de95683a063623d17cf87e56fad /client/src/sass/class-helpers.scss | |
parent | 9bc3622320dc43474ce4b60c222ec25e6e657b97 (diff) | |
download | PeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.gz PeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.zst PeerTube-75084782b767f51f6158ada1984cf339c6302960.zip |
Handle input error in custom input text
Diffstat (limited to 'client/src/sass/class-helpers.scss')
-rw-r--r-- | client/src/sass/class-helpers.scss | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss index f09d84882..2994a57ae 100644 --- a/client/src/sass/class-helpers.scss +++ b/client/src/sass/class-helpers.scss | |||
@@ -77,6 +77,10 @@ | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | .input-group .input-error { | ||
81 | z-index: 3; | ||
82 | } | ||
83 | |||
80 | .form-error, | 84 | .form-error, |
81 | .form-warning { | 85 | .form-warning { |
82 | display: block; | 86 | display: block; |
@@ -87,7 +91,9 @@ | |||
87 | color: $red; | 91 | color: $red; |
88 | } | 92 | } |
89 | 93 | ||
90 | .input-error:focus { | 94 | // Disable red error on input focus |
95 | .input-error:focus, | ||
96 | .input-group:focus-within { | ||
91 | & + .form-error, | 97 | & + .form-error, |
92 | & + * + .form-error, // Markdown textarea | 98 | & + * + .form-error, // Markdown textarea |
93 | & + * + * + .form-error { | 99 | & + * + * + .form-error { |