@@ -64,7 +64,7 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
64
64
position : relative;
65
65
}
66
66
67
- .sapMBtn : hover {
67
+ .sapMBtn : not (. sapMBtnActive ) : hover {
68
68
background : var (--sapUiButtonHoverBackground );
69
69
}
70
70
@@ -114,17 +114,15 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
114
114
border : 0 ;
115
115
}
116
116
117
- .sapMBtnActive ,
118
- .sapMBtn : active {
117
+ .sapMBtnActive {
119
118
background-image : none;
120
119
background-color : var (--sapUiButtonActiveBackground );
121
120
border-color : var (--_ui5_button_active_border_color );
122
121
color : var (--sapUiButtonActiveTextColor );
123
122
text-shadow : none;
124
123
}
125
124
126
- .sapMBtnActive : focus ::after ,
127
- .sapMBtn : active : focus ::after {
125
+ .sapMBtnActive : focus ::after {
128
126
border-color : var (--sapUiContentContrastFocusColor );
129
127
}
130
128
@@ -140,8 +138,7 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
140
138
border-color : var (--_ui5_button_positive_border_hover_color );
141
139
}
142
140
143
- .sapMBtn .sapMBtnPositive .sapMBtnActive ,
144
- .sapMBtn .sapMBtnPositive : active {
141
+ .sapMBtn .sapMBtnPositive .sapMBtnActive {
145
142
background-color : var (--sapUiButtonAcceptActiveBackground );
146
143
border-color : var (--_ui5_button_positive_border_active_color );
147
144
color : var (--sapUiButtonActiveTextColor );
@@ -151,8 +148,7 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
151
148
.sapMBtn .sapMBtnPositive : focus {
152
149
border-color : var (--_ui5_button_positive_focus_border_color );
153
150
}
154
- .sapMBtn .sapMBtnPositive .sapMBtnActive : focus ::after ,
155
- .sapMBtn .sapMBtnPositive : active : focus ::after {
151
+ .sapMBtn .sapMBtnPositive .sapMBtnActive : focus ::after {
156
152
border-color : var (--sapUiContentContrastFocusColor );
157
153
}
158
154
@@ -176,16 +172,14 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
176
172
border-color : var (--_ui5_button_negative_focus_border_color );
177
173
}
178
174
179
- .sapMBtn .sapMBtnNegative .sapMBtnActive ,
180
- .sapMBtn .sapMBtnNegative : active {
175
+ .sapMBtn .sapMBtnNegative .sapMBtnActive {
181
176
background-color : var (--sapUiButtonRejectActiveBackground );
182
177
border-color : var (--_ui5_button_negative_active_border_color );
183
178
color : var (--sapUiButtonActiveTextColor );
184
179
text-shadow : none;
185
180
}
186
181
187
- .sapMBtn .sapMBtnNegative .sapMBtnActive : focus ::after ,
188
- .sapMBtn .sapMBtnNegative : active : focus ::after {
182
+ .sapMBtn .sapMBtnNegative .sapMBtnActive : focus ::after {
189
183
border-color : var (--sapUiContentContrastFocusColor );
190
184
}
191
185
@@ -205,16 +199,14 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
205
199
border-color : var (--sapUiButtonEmphasizedHoverBorderColor );
206
200
}
207
201
208
- .sapMBtn .sapMBtnEmphasized .sapMBtnActive ,
209
- .sapMBtn .sapMBtnEmphasized : active {
202
+ .sapMBtn .sapMBtnEmphasized .sapMBtnActive {
210
203
background-color : var (--sapUiButtonEmphasizedActiveBackground );
211
204
border-color : var (--sapUiButtonEmphasizedActiveBorderColor );
212
205
color : var (--sapUiButtonActiveTextColor );
213
206
text-shadow : none;
214
207
}
215
208
216
- .sapMBtn .sapMBtnEmphasized .sapMBtnActive : focus ::after ,
217
- .sapMBtn .sapMBtnEmphasized : active : focus ::after {
209
+ .sapMBtn .sapMBtnEmphasized .sapMBtnActive : focus ::after {
218
210
border-color : var (--sapUiContentContrastFocusColor );
219
211
}
220
212
@@ -238,13 +230,12 @@ ui5-button span[data-sap-ui-wc-root] .sapMBtn::before {
238
230
background-color : var (--sapUiButtonLiteHoverBackground );
239
231
}
240
232
241
- .sapMBtn .sapMBtnTransparent .sapMBtnActive ,
242
- .sapMBtn .sapMBtnTransparent : active {
233
+ .sapMBtn .sapMBtnTransparent .sapMBtnActive {
243
234
background-color : var (--sapUiButtonLiteActiveBackground );
244
235
color : var (--sapUiButtonActiveTextColor );
245
236
text-shadow : none;
246
237
}
247
238
248
- .sapMBtn .sapMBtnTransparent : hover : not (: active ) {
239
+ .sapMBtn .sapMBtnTransparent : hover : not (. sapMBtnActive ) {
249
240
border-color : transparent;
250
241
}
0 commit comments