File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const po = new PerformanceObserver((list) => {
86
86
/**
87
87
* Highlight LCP elements on the page
88
88
*/
89
- item .element ? (item .element .style = " border : 5px dotted blue;" ) : " " ;
89
+ item .element ? (item .element .style = " outline : 5px solid blue; outline-offset: -5px ;" ) : " " ;
90
90
});
91
91
92
92
/**
@@ -871,7 +871,7 @@ const shifts = [];
871
871
872
872
// threshold ex: 0.05
873
873
// Layout Shifts will be grouped by color.
874
- // All nodes attributed to the shift will have a border with the corresponding color
874
+ // All nodes attributed to the shift will have an outline with the corresponding color
875
875
// Shift value will be added above parent node.
876
876
// Will have all details related to that shift in dropdown
877
877
// Useful for single page applications and finding shifts after initial load
@@ -892,7 +892,7 @@ function findShifts(threshold) {
892
892
valueNode .style = ` color: ${ color} ;` ;
893
893
entry .sources .forEach ((source ) => {
894
894
source .node .parentNode .insertBefore (valueNode, source .node );
895
- source .node .style = ` border : 2px ${ color} solid` ;
895
+ source .node .style = ` outline : 2px ${ color} solid; outline-offset: -2px ` ;
896
896
});
897
897
}
898
898
});
You can’t perform that action at this time.
0 commit comments