File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 9
9
isPhone ,
10
10
isTablet ,
11
11
isCombi ,
12
+ isDesktop ,
12
13
isSafari ,
13
14
} from "@ui5/webcomponents-base/dist/Device.js" ;
14
15
import ButtonDesign from "./types/ButtonDesign.js" ;
@@ -436,7 +437,9 @@ class Button extends UI5Element {
436
437
return ;
437
438
}
438
439
this . active = false ;
439
- this . focused = false ;
440
+ if ( isDesktop ( ) ) {
441
+ this . focused = false ;
442
+ }
440
443
}
441
444
442
445
_onfocusin ( event ) {
@@ -445,7 +448,9 @@ class Button extends UI5Element {
445
448
}
446
449
447
450
event . isMarked = "button" ;
448
- this . focused = true ;
451
+ if ( isDesktop ( ) ) {
452
+ this . focused = true ;
453
+ }
449
454
}
450
455
451
456
get hasButtonType ( ) {
Original file line number Diff line number Diff line change @@ -301,6 +301,6 @@ bdi {
301
301
text-shadow : none;
302
302
}
303
303
304
- : host ([design = "Transparent" ]: not ([active ]): hover ) {
304
+ : host ([design = "Transparent" ]: not ([active ]): not ([ _is-touch ]) : hover ) {
305
305
border-color : var (--sapButton_Lite_Hover_BorderColor );
306
306
}
You can’t perform that action at this time.
0 commit comments