File tree Expand file tree Collapse file tree 2 files changed +9
-23
lines changed Expand file tree Collapse file tree 2 files changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,6 @@ class Avatar extends UI5Element implements ITabbable, IAvatarGroupItem {
92
92
@property ( { type : Boolean } )
93
93
interactive ! : boolean ;
94
94
95
- /**
96
- * Indicates if the elements is pressed
97
- * @private
98
- */
99
- @property ( { type : Boolean } )
100
- pressed ! : boolean ;
101
-
102
95
/**
103
96
* Defines the name of the UI5 Icon, that will be displayed.
104
97
*
@@ -404,7 +397,6 @@ class Avatar extends UI5Element implements ITabbable, IAvatarGroupItem {
404
397
405
398
_fireClick ( ) {
406
399
this . fireEvent ( "click" ) ;
407
- this . pressed = ! this . pressed ;
408
400
}
409
401
410
402
_getAriaHasPopup ( ) {
Original file line number Diff line number Diff line change 10
10
opacity : .7 ;
11
11
}
12
12
13
- : host (: is ( [interactive ]) : not ([disabled ])) {
13
+ : host ([interactive ]: not ([disabled ])) {
14
14
cursor : pointer;
15
15
}
16
16
17
- : host (: is ( [interactive ][ pressed ]) : not ([hidden ])) {
18
- background : var (--sapButton_Active_Background );
17
+ : host ([interactive ]: not ([hidden ]): active ) {
18
+ background-color : var (--sapButton_Active_Background );
19
19
border-color : var (--sapButton_Active_BorderColor );
20
20
color : var (--sapButton_Active_TextColor );
21
21
}
22
22
23
- : host (: is ([interactive ][pressed ]): not ([hidden ]): hover ) {
24
- background : var (--sapButton_Selected_Hover_Background );
25
- border-color : var (--sapButton_Selected_Hover_BorderColor );
26
- color : var (--sapButton_Selected_TextColor );
27
- }
28
-
29
- : host (: is ([interactive ]): not ([hidden ]): not ([pressed ]): not ([disabled ]): hover ) {
23
+ : host ([interactive ]: not ([hidden ]): not ([disabled ]): not (: active ): hover ) {
30
24
box-shadow : var (--ui5-avatar-hover-box-shadow-offset );
31
25
}
32
26
33
- : host (: is ( [interactive ][desktop ]) : not ([hidden ])) .ui5-avatar-root : focus-within ,
34
- : host (: is ( [interactive ]) : not ([hidden ])) .ui5-avatar-root : focus-visible {
27
+ : host ([interactive ][desktop ]: not ([hidden ])) .ui5-avatar-root : focus-within ,
28
+ : host ([interactive ]: not ([hidden ])) .ui5-avatar-root : focus-visible {
35
29
outline : var (--_ui5_avatar_outline );
36
30
outline-offset : var (--_ui5_avatar_focus_offset );
37
31
}
38
32
39
- : host (: is ( [disabled ]) ) {
33
+ : host ([disabled ]) {
40
34
opacity : var (--sapContent_DisabledOpacity );
41
35
}
42
36
137
131
138
132
::slotted (* ) {
139
133
border-radius : 50% ;
140
- width : 100% ;
141
- height : 100% ;
134
+ width : 100% ;
135
+ height : 100% ;
142
136
pointer-events : none;
143
137
}
144
138
You can’t perform that action at this time.
0 commit comments