114
114
115
115
.ui5-switch-handle ,
116
116
.ui5-switch-text {
117
- left : var (--_ui5_switch_handle_left );
117
+ inset-inline-start : var (--_ui5_switch_handle_left );
118
118
top : 50% ;
119
119
transform : translateY (-50% );
120
120
}
123
123
.ui5-switch-desktop .ui5-switch-root : focus ::after {
124
124
content : "" ;
125
125
position : absolute;
126
- left : var (--_ui5_switch_root_outline_left );
127
- right : var (--_ui5_switch_root_outline_right );
126
+ inset-inline-start : var (--_ui5_switch_root_outline_left );
127
+ inset-inline-end : var (--_ui5_switch_root_outline_right );
128
128
top : var (--_ui5_switch_root_outline_top );
129
129
bottom : var (--_ui5_switch_root_outline_bottom );
130
130
border : var (--_ui5_switch_focus_outline );
137
137
/* switch hidden input */
138
138
.ui5-switch-root .ui5-switch-input {
139
139
position : absolute;
140
- left : 0 ;
140
+ inset-inline-start : 0 ;
141
141
width : 0 ;
142
142
height : 0 ;
143
143
margin : 0 ;
144
144
visibility : hidden;
145
+ appearance : none;
145
146
-webkit-appearance : none;
146
147
}
147
148
160
161
161
162
.ui5-switch-root .ui5-switch--checked .ui5-switch--semantic .ui5-switch-text--on ,
162
163
.ui5-switch-root .ui5-switch--checked .ui5-switch-desktop .ui5-switch--no-label .ui5-switch-text--on {
163
- left : var (--_ui5_switch_text_active_left );
164
+ inset-inline-start : var (--_ui5_switch_text_active_left );
164
165
}
165
166
.ui5-switch-root : not (.ui5-switch--checked ).ui5-switch--semantic .ui5-switch-text--off ,
166
167
.ui5-switch-root : not (.ui5-switch--checked ).ui5-switch-desktop .ui5-switch--no-label .ui5-switch-text--off {
167
- left : var (--_ui5_switch_text_inactive_left );
168
- right : var (--_ui5_switch_text_inactive_right );
168
+ inset-inline-start : var (--_ui5_switch_text_inactive_left );
169
+ inset-inline-end : var (--_ui5_switch_text_inactive_right );
169
170
}
170
171
171
172
/* handle */
337
338
color : var (--_ui5_switch_text_active_color );
338
339
overflow : var (--_ui5_switch_text_overflow );
339
340
text-overflow : ellipsis;
340
- left : var (--_ui5_switch_text_active_left_alternate );
341
+ inset-inline-start : var (--_ui5_switch_text_active_left_alternate );
341
342
}
342
343
.ui5-switch-root .ui5-switch-text--off {
343
344
color : var (--_ui5_switch_text_inactive_color );
344
345
overflow : var (--_ui5_switch_text_overflow );
345
346
text-overflow : ellipsis;
346
- left : var (--_ui5_switch_text_inactive_left_alternate );
347
- right : var (--_ui5_switch_text_inactive_right_alternate );
347
+ inset-inline-start : var (--_ui5_switch_text_inactive_left_alternate );
348
+ inset-inline-end : var (--_ui5_switch_text_inactive_right_alternate );
348
349
}
349
350
350
351
.ui5-switch-root .ui5-switch-no-label-icon-on ,
364
365
365
366
[dir = "rtl" ].ui5-switch-root .ui5-switch--checked .ui5-switch-slider {
366
367
transform : var (--_ui5_switch_rtl_transform );
367
- }
368
-
369
- [dir = "rtl" ].ui5-switch-root .ui5-switch-handle {
370
- left : auto;
371
- right : var (--_ui5_switch_handle_left );
372
- }
373
-
374
- [dir = "rtl" ].ui5-switch-root .ui5-switch-text--on {
375
- right : var (--_ui5_switch_text_active_left );
376
- left : var (--_ui5_switch_text_active_right );
377
- }
378
-
379
- [dir = "rtl" ].ui5-switch-root .ui5-switch-text--off {
380
- right : var (--_ui5_switch_text_inactive_left );
381
- left : var (--_ui5_switch_text_inactive_right );
382
- }
368
+ }
0 commit comments