File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change 26
26
& ::before {
27
27
$offset : -8px ;
28
28
content : ' ' ;
29
- top : $offset ;
30
- right : $offset ;
31
- bottom : $offset ;
32
- left : $offset ;
29
+ top : 0 ;
30
+ right : 0 ;
31
+ bottom : 0 ;
32
+ left : 0 ;
33
33
z-index : -1 ;
34
34
position : absolute ;
35
+
36
+ // Only set the offset on the side closest to the panel so we
37
+ // don't accidentally cover more content than we need to.
38
+ .mat-mdc-tooltip-panel-below & {
39
+ top : $offset ;
40
+ }
41
+
42
+ .mat-mdc-tooltip-panel-above & {
43
+ bottom : $offset ;
44
+ }
45
+
46
+ // Note that here we use left/right instead of before/after
47
+ // so that we don't have to add extra styles for RTL.
48
+ .mat-mdc-tooltip-panel-right & {
49
+ left : $offset ;
50
+ }
51
+
52
+ .mat-mdc-tooltip-panel-left & {
53
+ right : $offset ;
54
+ }
35
55
}
36
56
37
57
& ._mat-animation-noopable {
You can’t perform that action at this time.
0 commit comments