22
22
@_ui5_checkbox_checkmark_warning_color : darken (@sapUiFieldWarningColor , 100 );
23
23
@_ui5_checkbox_checkmark_color : @sapUiSelected ;
24
24
@_ui5_checkbox_focus_left_top_bottom_position : .6875rem ;
25
- @_ui5_checkbox_compact_no_label_focus_right : 0 px ;
25
+ @_ui5_checkbox_compact_no_label_focus_right : 1 px ;
26
26
@_ui5_checkbox_no_label_focus_right : .6875rem ;
27
27
@_ui5_checkbox_focus_outline : 1px dotted @sapUiContentFocusColor ;
28
28
@_ui5_checkbox_compact_inner_size : 1rem ;
29
29
@_ui5_checkbox_compact_focus_left_top_bottom_position : .375rem ;
30
30
@_ui5_checkbox_wrapped_content_margin_top : 0.125rem ;
31
31
@_ui5_checkbox_wrapped_focus_padding : .375rem ;
32
+ @_ui5_checkbox_wrapped_focus_left_top_bottom_position : .5625rem ;
33
+ @_ui5_checkbox_compact_wrapped_focus_left_top_bottom_position : .4375rem ;
34
+ @_ui5_checkbox_compact_wrapped_label_margin_top : -1px ;
32
35
33
36
:host (ui5- checkbox) {
34
37
display : inline-block ;
@@ -75,6 +78,10 @@ ui5-checkbox {
75
78
margin-top : @_ui5_checkbox_wrapped_content_margin_top ;
76
79
}
77
80
81
+ .sapUiSizeCompact .ui5-checkbox-wrapper.ui5-checkbox-with-label.ui5-checkbox--wrap .ui5-checkbox-label {
82
+ margin-top : @_ui5_checkbox_compact_wrapped_label_margin_top ;
83
+ }
84
+
78
85
.ui5-checkbox--disabled {
79
86
opacity : .5 ;
80
87
}
@@ -132,7 +139,11 @@ ui5-checkbox {
132
139
border : @_ui5_checkbox_focus_outline ;
133
140
}
134
141
135
- .ui5-checkbox-wrapper :not (.ui5-checkbox-with-label ):focus ::after {
142
+ .ui5-checkbox-wrapper.ui5-checkbox--wrap :focus ::before {
143
+ bottom : @_ui5_checkbox_wrapped_focus_left_top_bottom_position ;
144
+ }
145
+
146
+ .ui5-checkbox-wrapper :not (.ui5-checkbox-with-label ):focus ::before {
136
147
right : @_ui5_checkbox_no_label_focus_right ;
137
148
}
138
149
@@ -181,6 +192,7 @@ ui5-checkbox {
181
192
}
182
193
183
194
.ui5-checkbox-wrapper .ui5-checkbox-label {
195
+ width : calc (100% - .8125rem - @_ui5_checkbox_inner_width_height );
184
196
margin-left : .8125rem ;
185
197
cursor : default ;
186
198
pointer-events : none ;
@@ -211,7 +223,7 @@ ui5-checkbox {
211
223
border : @_ui5_checkbox_focus_outline ;
212
224
}
213
225
214
- .sapUiSizeCompact .ui5-checkbox-wrapper :not (.ui5-checkbox-with-label ):focus ::after {
226
+ .sapUiSizeCompact .ui5-checkbox-wrapper :not (.ui5-checkbox-with-label ):focus ::before {
215
227
right : @_ui5_checkbox_compact_no_label_focus_right ;
216
228
}
217
229
@@ -221,6 +233,15 @@ ui5-checkbox {
221
233
padding-bottom : @_ui5_checkbox_wrapped_focus_padding ;
222
234
}
223
235
236
+ .sapUiSizeCompact .ui5-checkbox-wrapper.ui5-checkbox--wrap :focus ::before {
237
+ bottom : @_ui5_checkbox_compact_wrapped_focus_left_top_bottom_position ;
238
+ }
239
+
240
+ .sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-label {
241
+ width : calc (100% - .8125rem - @_ui5_checkbox_compact_inner_size );
242
+ }
243
+
244
+
224
245
span [dir= " rtl" ] .ui5-checkbox-wrapper .ui5-checkbox-label {
225
246
margin-left : 0 ;
226
247
margin-right : .8125rem ;
0 commit comments