Skip to content

Commit b23675c

Browse files
committed
use the +error class on NumericInput
1 parent e2e2dbe commit b23675c

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/components/widgets/NumericInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class NumericInput extends Component {
2626
getNumericInputClassName(value) {
2727
return isNumeric(value) || value === ''
2828
? `numeric-input__number ${this.props.editableClassName ? this.props.editableClassName : ''}`
29-
: `numeric-input__number--error ${
29+
: `numeric-input__number +error ${
3030
this.props.editableClassName ? this.props.editableClassName : ''
3131
}`;
3232
}

src/styles/components/widgets/_numeric-input.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@
4949
font-family: inherit;
5050
}
5151

52-
.numeric-input__number--error {
53-
@extend .numeric-input__number;
54-
border-color: var(--color-sienna);
55-
}
56-
57-
.numeric-input__number--error:focus {
58-
@extend .numeric-input__number;
59-
border-color: var(--color-sienna);
60-
outline-color: var(--color-sienna);
61-
}
62-
6352
.numeric-input__caret-box {
6453
display: inline-block;
6554
max-height: 32px;

0 commit comments

Comments
 (0)