File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
src/bundle/Resources/public Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 33 const SELECTOR_INPUT = '.ibexa-data-source__input:not(.flatpickr-input)' ;
44 const SELECTOR_FLATPICKR_INPUT = '.flatpickr-input' ;
55 const EVENT_VALUE_CHANGED = 'change' ;
6- const SELECTOR_ERROR_NODE = '.ibexa-data-source ' ;
6+ const SELECTOR_ERROR_NODE = '.ibexa-form-error ' ;
77
88 class EzDateValidator extends ibexa . BaseFieldValidator {
99 /**
Original file line number Diff line number Diff line change 33 const SELECTOR_INPUT = '.ibexa-data-source__input[data-seconds]' ;
44 const SELECTOR_FLATPICKR_INPUT = '.flatpickr-input' ;
55 const EVENT_VALUE_CHANGED = 'change' ;
6- const SELECTOR_ERROR_NODE = '.ibexa-data-source ' ;
6+ const SELECTOR_ERROR_NODE = '.ibexa-form-error ' ;
77 const { convertDateToTimezone } = ibexa . helpers . timezone ;
88
99 class EzDateTimeValidator extends ibexa . BaseFieldValidator {
Original file line number Diff line number Diff line change 1313@import ' mixins/drag-and-drop' ;
1414
1515@mixin datetime-field () {
16+ & .is-invalid {
17+ .ibexa-label {
18+ color : $ibexa-color-danger ;
19+ }
20+
21+ .ibexa-input-text-wrapper__action-btn {
22+ .ibexa-icon {
23+ fill : $ibexa-color-danger ;
24+ }
25+ }
26+
27+ .ibexa-data-source__input {
28+ border : calculateRem (1px ) solid $ibexa-color-danger ;
29+ background : $ibexa-color-danger-100 ;
30+ }
31+ }
32+
1633 .ibexa-data-source__input-wrapper {
1734 max-width : 30ch ;
1835 position : relative ;
98115
99116 .ibexa-data-source__input {
100117 border : calculateRem (1px ) solid $ibexa-color-danger ;
101- background : $ibexa-color-warning-pale ;
118+ background : $ibexa-color-danger-100 ;
102119 }
103120 }
104121}
You can’t perform that action at this time.
0 commit comments