Skip to content

Commit 5ffd815

Browse files
committed
overwrite the error style of select when rendered in datepicker
1 parent 8c500ec commit 5ffd815

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/scripts/DateInput.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import FormElement from './FormElement';
55
import Input from './Input';
66
import Icon from './Icon';
77
import Datepicker from './Datepicker';
8-
import { uuid, isElInChildren } from './util';
8+
import { uuid, isElInChildren, registerStyle } from './util';
99

1010
export default class DateInput extends Component {
1111
constructor(props) {
@@ -23,6 +23,13 @@ export default class DateInput extends Component {
2323
this.onDatepickerSelect = this.onDatepickerSelect.bind(this);
2424
this.onDatepickerBlur = this.onDatepickerBlur.bind(this);
2525
this.onDatepickerClose = this.onDatepickerClose.bind(this);
26+
27+
registerStyle('dateinput', [
28+
[
29+
'.slds-has-error .slds-datepicker .slds-select',
30+
'{ border: 1px solid #d8dde6; box-shadow: none; }',
31+
],
32+
]);
2633
}
2734

2835
componentDidUpdate(prevProps, prevState) {

0 commit comments

Comments
 (0)