Skip to content

Commit 93c0d27

Browse files
authored
fix: Issue fixed. Styling is now in scss no longer in the typescript (#627)
1 parent 63d75e9 commit 93c0d27

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/app/services/analytics/origin-destination/components/origin-destination.component.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131
line-height: 1.5;
3232
text-align: left;
3333
text-align: start;
34+
background-color: var(--NODE_DOCKABLE);
35+
border: 1px solid var(--COLOR_Default);
36+
border-radius: 5px;
37+
padding: 5px;
38+
user-select: none;
39+
pointer-events: none;
3440
}
41+
3542
.palette-buttons {
3643
position: absolute;
3744
top: 16px;

src/app/services/analytics/origin-destination/components/origin-destination.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,7 @@ export class OriginDestinationComponent implements OnInit, AfterViewInit, OnDest
222222
.select("#main-origin-destination-container-root")
223223
.append("div")
224224
.style("opacity", 0)
225-
.attr("class", "tooltip")
226-
.style("background-color", "white")
227-
.style("border", "solid")
228-
.style("border-width", "2px")
229-
.style("border-radius", "5px")
230-
.style("padding", "5px")
231-
.style("user-select", "none")
232-
.style("pointer-events", "none");
225+
.attr("class", "tooltip");
233226

234227
// Three function that change the tooltip when user hover / move / leave a cell
235228
const mouseover = function (d: OriginDestination) {

0 commit comments

Comments
 (0)