File tree Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 51
51
margin : inherit;
52
52
}
53
53
54
+ : host ([disabled ]) .ui5-date-picker-input {
55
+ background-color : var (--_ui5-input_disabled_background );
56
+ opacity : var (--_ui5_input_disabled_opacity );
57
+ }
58
+
54
59
: host (: not ([disabled ]): not ([readonly ])) .ui5-date-picker-input [focused ] {
55
60
background-color : var (--_ui5-datepicker-hover-background );
56
61
}
Original file line number Diff line number Diff line change 4
4
- readonly and disabled states
5
5
*/
6
6
7
+ : host ([disabled ]) {
8
+ cursor : default;
9
+ pointer-events : none;
10
+ background : none;
11
+ }
12
+
7
13
: host ([readonly ]: not ([disabled ])) {
8
14
border-color : var (--_ui5_input_readonly_border_color );
9
15
background : var (--sapField_ReadOnly_BackgroundStyle );
10
16
background-color : var (--_ui5_input_readonly_background );
11
17
}
12
18
13
- : host ([disabled ]) {
14
- opacity : var (--_ui5_input_disabled_opacity );
15
- cursor : default;
16
- pointer-events : none;
17
- background-color : var (--_ui5-input_disabled_background );
18
- border-color : var (--_ui5_input_disabled_border_color );
19
- }
20
-
21
19
: host ([value-state = "Negative" ]) .inputIcon : not (.inputIcon--pressed ): not (: active ): hover {
22
20
box-shadow : var (--_ui5_input_error_icon_box_shadow );
23
21
}
Original file line number Diff line number Diff line change 27
27
background-color : var (--sapField_InvalidBackground );
28
28
}
29
29
30
- : host (: not ([disabled ]): hover ) {
30
+ : host (: not ([disabled ]): not ([ readonly ]) : hover ) {
31
31
background : var (--sapField_Hover_Background );
32
32
}
33
33
49
49
height : inherit;
50
50
}
51
51
52
+ : host ([disabled ]) .ui5-time-picker-input {
53
+ background-color : var (--_ui5-input_disabled_background );
54
+ opacity : var (--_ui5_input_disabled_opacity );
55
+ }
56
+
52
57
.ui5-time-picker-popover ::part (header ) {
53
58
padding : 0 ;
54
59
}
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ <h3>TimePicker in Compact</h3>
90
90
< div slot ="valueStateMessage " id ="customValueStateMessageInformation "> Additional information</ div >
91
91
</ ui5-time-picker >
92
92
93
+ < ui5-time-picker readonly > </ ui5-time-picker >
94
+ < ui5-time-picker disabled > </ ui5-time-picker >
95
+
93
96
< script >
94
97
var counter = 0 ;
95
98
timepickerChange . addEventListener ( "ui5-change" , function ( ) {
You can’t perform that action at this time.
0 commit comments