diff --git a/res/css/views/elements/_Validation.scss b/res/css/views/elements/_Validation.scss index 08ae793663..f101f6cd26 100644 --- a/res/css/views/elements/_Validation.scss +++ b/res/css/views/elements/_Validation.scss @@ -14,19 +14,48 @@ See the License for the specific language governing permissions and limitations under the License. */ +.mx_Validation_description { + margin-bottom: 1em; +} + .mx_Validation_details { - padding-left: 15px; + padding-left: 20px; + margin: 0; } .mx_Validation_detail { + position: relative; font-weight: normal; + list-style: none; + margin-bottom: 0.5em; + + &::before { + content: ""; + position: absolute; + width: 14px; + height: 14px; + top: 0; + left: -18px; + mask-repeat: no-repeat; + mask-position: center; + mask-size: contain; + } - // TODO: Check / cross images &.mx_Validation_valid { color: $input-valid-border-color; + + &::before { + mask-image: url('$(res)/img/feather-customised/check.svg'); + background-color: $input-valid-border-color; + } } &.mx_Validation_invalid { color: $input-invalid-border-color; + + &::before { + mask-image: url('$(res)/img/feather-customised/x.svg'); + background-color: $input-invalid-border-color; + } } } diff --git a/res/img/feather-customised/check.svg b/res/img/feather-customised/check.svg new file mode 100644 index 0000000000..5c600f8649 --- /dev/null +++ b/res/img/feather-customised/check.svg @@ -0,0 +1,3 @@ + + + diff --git a/res/img/feather-customised/x.svg b/res/img/feather-customised/x.svg new file mode 100644 index 0000000000..5468caa8aa --- /dev/null +++ b/res/img/feather-customised/x.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/views/elements/Validation.js b/src/components/views/elements/Validation.js index 44be046a73..4770c968e2 100644 --- a/src/components/views/elements/Validation.js +++ b/src/components/views/elements/Validation.js @@ -97,7 +97,7 @@ export default function withValidation({ description, rules }) { } const feedback =
-
{description}
+
{description}
{details}
;