Skip to content

Commit

Permalink
feat(input): add red border around error labeled input
Browse files Browse the repository at this point in the history
Closes #257
  • Loading branch information
prudho authored and Sean committed Dec 21, 2018
1 parent 4eedd99 commit 5098f2a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,21 @@
left: @borderWidth;
}

/* Labeled input error */
.ui.labeled.input.error:not([class*="corner labeled"]) > .ui.label {
border-top: @borderWidth solid @errorBorder;
border-bottom: @borderWidth solid @errorBorder;
}
.ui.labeled.input.error:not(.right):not([class*="corner labeled"]) > .ui.label {
border-left: @borderWidth solid @errorBorder;
}
.ui.right.labeled.input.error:not([class*="corner labeled"]) > input + .ui.label {
border-right: @borderWidth solid @errorBorder;
}
.ui.right.labeled.input.error:not([class*="corner labeled"]) > .ui.label:first-child {
border-left: @borderWidth solid @errorBorder;
}


/*--------------------
Action
Expand Down

0 comments on commit 5098f2a

Please sign in to comment.