File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -985,7 +985,8 @@ class Preview extends React.Component {
985
985
}
986
986
highlightSetThumbnailButton ( ) {
987
987
const highlightDriver = driver ( {
988
- popoverClass : 'driverjs-theme'
988
+ popoverClass : 'driverjs-theme' ,
989
+ stagePadding : 5
989
990
} ) ;
990
991
highlightDriver . highlight ( {
991
992
element : 'span[class*="stage-header_setThumbnailButton"]'
Original file line number Diff line number Diff line change 5
5
// directly, and since we have two driverjs instances in the component requiring
6
6
// different behaviors (one acts like a tooltip, the other like a highlight),
7
7
// we need to be specific.
8
- .driver-active :has ( .tooltip-set-thumbnail ) * {
8
+ .driver-active * {
9
9
pointer-events : auto !important ;
10
10
}
11
11
12
+ .driver-active .driver-overlay {
13
+ pointer-events : none !important ;
14
+ }
15
+
16
+ .driver-active :has (.tooltip-set-thumbnail ) > .driver-overlay {
17
+ z-index : -1 !important ;
18
+ visibility : hidden ;
19
+ }
20
+
21
+ // Fallback to a more manual selector, in case the browser does not
22
+ // support :has(). This has the downside of depending on DOM order,
23
+ // but it should still work for the majority of cases.
24
+ // This code needs to be in a separate definition from the selector above -
25
+ // if we define it in the same place (e.g. separated by a comma),
26
+ // older browsers end up not applying the whole style.
12
27
.tooltip-set-thumbnail ~ .driver-overlay {
13
28
z-index : -1 !important ;
29
+ visibility : hidden ;
14
30
}
15
31
16
32
.driver-popover.tooltip-set-thumbnail {
17
33
padding : 18px ;
18
34
background-color : $ui-blue ;
19
35
color : white ;
20
36
text-align : center ;
21
- z-index : 10 ;
37
+ z-index : 9 ;
22
38
}
23
39
24
40
.driver-popover.tooltip-set-thumbnail .driver-popover-title {
You can’t perform that action at this time.
0 commit comments