59
59
letter-spacing : inherit;
60
60
word-spacing : inherit;
61
61
line-height : inherit;
62
+ -webkit-user-select : none;
63
+ -moz-user-select : none;
64
+ -ms-user-select : none;
65
+ user-select : none;
62
66
}
63
67
64
- : host (: not ([active ]): not ([non-interactive ]): hover ),
68
+ : host (: not ([active ]): not ([non-interactive ]): not ([ _is-touch ]) : hover ),
65
69
: host (: not ([hidden ]).ui5_hovered ) {
66
70
background : var (--sapButton_Hover_Background );
67
71
}
@@ -125,15 +129,15 @@ bdi {
125
129
text-overflow : inherit;
126
130
}
127
131
128
- : host ([active ]: not ([disabled ])) {
132
+ : host ([ui5-button ][ active ]: not ([disabled ]) : not ([ non-interactive ])) {
129
133
background-image : none;
130
134
background-color : var (--sapButton_Active_Background );
131
135
border-color : var (--_ui5_button_active_border_color );
132
136
color : var (--sapButton_Active_TextColor );
133
137
text-shadow : none;
134
138
}
135
139
136
- : host ([active ]) {
140
+ : host ([active ]: not ([ _is-touch ]) ) {
137
141
outline-color : var (--sapContent_ContrastFocusColor );
138
142
}
139
143
@@ -144,19 +148,19 @@ bdi {
144
148
text-shadow : var (--_ui5_button_text_shadow );
145
149
}
146
150
147
- : host ([design = "Positive" ]: hover ) {
151
+ : host ([design = "Positive" ]: not ([ active ]) : not ([ non-interactive ]) : not ([ _is-touch ]) : hover ) {
148
152
background-color : var (--sapButton_Accept_Hover_Background );
149
153
border-color : var (--_ui5_button_positive_border_hover_color );
150
154
}
151
155
152
- : host ([design = "Positive" ][active ]) {
156
+ : host ([ui5-button ][ _is-touch ][ design = "Positive" ][active ]: not ([ non-interactive ]) ) {
153
157
background-color : var (--sapButton_Accept_Active_Background );
154
158
border-color : var (--_ui5_button_positive_border_active_color );
155
159
color : var (--sapButton_Active_TextColor );
156
160
text-shadow : none;
157
161
}
158
162
159
- : host ([design = "Positive" ][focused ]) {
163
+ : host ([design = "Positive" ][focused ]: not ([ _is-touch ]) ) {
160
164
outline-color : var (--_ui5_button_positive_border_focus_hover_color );
161
165
border-color : var (--_ui5_button_positive_focus_border_color );
162
166
}
@@ -172,7 +176,7 @@ bdi {
172
176
text-shadow : var (--_ui5_button_text_shadow );
173
177
}
174
178
175
- : host ([design = "Negative" ]: hover ) {
179
+ : host ([design = "Negative" ]: not ([ active ]) : not ([ non-interactive ]) : not ([ _is-touch ]) : hover ) {
176
180
background-color : var (--sapButton_Reject_Hover_Background );
177
181
border-color : var (--sapButton_Reject_Hover_BorderColor );
178
182
}
@@ -182,7 +186,7 @@ bdi {
182
186
outline-color : var (--_ui5_button_positive_border_focus_hover_color );
183
187
}
184
188
185
- : host ([design = "Negative" ][active ]) {
189
+ : host ([ui5-button ][ design = "Negative" ][active ]: not ([ non-interactive ]) ) {
186
190
background-color : var (--sapButton_Reject_Active_Background );
187
191
border-color : var (--_ui5_button_negative_active_border_color );
188
192
color : var (--sapButton_Active_TextColor );
@@ -201,12 +205,11 @@ bdi {
201
205
font-weight : var (--_ui5_button_emphasized_font_weight );
202
206
}
203
207
204
- : host ([design = "Emphasized" ]: not ([active ]): hover ) {
208
+ : host ([design = "Emphasized" ]: not ([active ]): not ([ non-interactive ]) : not ([ _is-touch ]) : hover ) {
205
209
background-color : var (--sapButton_Emphasized_Hover_Background );
206
210
border-color : var (--sapButton_Emphasized_Hover_BorderColor );
207
211
}
208
-
209
- : host ([design = "Empasized" ][active ]) {
212
+ : host ([ui5-button ][design = "Empasized" ][active ]: not ([non-interactive ])) {
210
213
background-color : var (--sapButton_Emphasized_Active_Background );
211
214
border-color : var (--sapButton_Emphasized_Active_BorderColor );
212
215
color : var (--sapButton_Active_TextColor );
@@ -225,11 +228,11 @@ bdi {
225
228
border-color : var (--_ui5_button_transparent_border_color );
226
229
}
227
230
228
- : host ([design = "Transparent" ]) : hover {
231
+ : host ([design = "Transparent" ]: not ([ active ]) : not ([ non-interactive ]) : not ([ _is-touch ]) : hover ) {
229
232
background-color : var (--sapButton_Lite_Hover_Background );
230
233
}
231
234
232
- : host ([design = "Transparent" ][active ]) {
235
+ : host ([ui5-button ][ design = "Transparent" ][active ]: not ([ non-interactive ]) ) {
233
236
background-color : var (--sapButton_Active_Background );
234
237
color : var (--sapButton_Active_TextColor );
235
238
text-shadow : none;
0 commit comments