Skip to content

Commit eb35c67

Browse files
committed
fixed tooltips to have correct styling
(given removal of innerClassName and hide_arrow)
1 parent 72540b6 commit eb35c67

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

fbfmaproom/assets/style.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ tr {
4242
background-color: #ff6961;
4343
}
4444

45-
.tooltiptext {
46-
color: black;
47-
position: relative;
48-
background-color: rgba(228,228,228, 1);
49-
max-width: 300px;
50-
min-width: 300px;
51-
font-size: 110%;
45+
.tooltiptext {
46+
opacity: 1 !important;
47+
}
48+
49+
.tooltiptext .tooltip-inner {
50+
color: black;
51+
background-color: #E4E4E4;
52+
max-width: 300px;
53+
min-width: 300px;
54+
font-size: 110%;
55+
}
56+
57+
.tooltiptext .tooltip-arrow {
58+
display: none;
5259
}

fbfmaproom/fbflayout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def help_layout(buttonname, id_name, message):
2828
dbc.Tooltip(
2929
f"{message}",
3030
target=id_name,
31+
className="tooltiptext",
3132
),
3233
]
3334
)
@@ -331,6 +332,7 @@ def command_layout():
331332
dbc.Tooltip(
332333
"Gantt it!- Early action activities planning tool in a format of a Gantt chart",
333334
target="gantt_button",
335+
className="tooltiptext",
334336
),
335337
],
336338
id="gantt",

0 commit comments

Comments
 (0)