Skip to content

Commit d57042d

Browse files
author
exoego
committed
feat(form): Show/hide message depending on field state
1 parent e8d7110 commit d57042d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/definitions/collections/form.less

+10
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,16 @@ each(@formStates, {
437437
}
438438

439439
/* On Field(s) */
440+
.ui.form .field.@{state} .@{state}.message:not(:empty) {
441+
display: block;
442+
}
443+
.ui.form .field.@{state} .compact.@{state}.message:not(:empty) {
444+
display: inline-block;
445+
}
446+
.ui.form .field.@{state} .icon.@{state}.message:not(:empty) {
447+
display: flex;
448+
}
449+
440450
.ui.ui.form .fields.@{state} .field label,
441451
.ui.ui.form .field.@{state} label,
442452
.ui.ui.form .fields.@{state} .field .input,

0 commit comments

Comments
 (0)