Skip to content

Commit 3aa8daf

Browse files
committed
Add tooltip to Std Dev column in grants recap
1 parent 7b827ca commit 3aa8daf

1 file changed

Lines changed: 46 additions & 1 deletion

File tree

backend/reviews/templates/grants-recap.html

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,49 @@
181181
tr:nth-of-type(odd) {
182182
background-color: var(--body-bg);
183183
}
184+
185+
/* Tooltip */
186+
.tooltip {
187+
position: relative;
188+
display: inline-block;
189+
}
190+
191+
.tooltip .tooltiptext {
192+
visibility: hidden;
193+
opacity: 0;
194+
width: 220px;
195+
background-color: #333;
196+
color: #fff;
197+
text-align: left;
198+
text-transform: none;
199+
padding: 8px 10px;
200+
border-radius: 6px;
201+
position: absolute;
202+
z-index: 1;
203+
top: 125%;
204+
left: 50%;
205+
margin-left: -110px;
206+
font-size: 12px;
207+
font-weight: normal;
208+
line-height: 1.4;
209+
transition: opacity 0.2s ease-in-out 0.5s, visibility 0.2s ease-in-out 0.5s;
210+
}
211+
212+
.tooltip .tooltiptext::after {
213+
content: "";
214+
position: absolute;
215+
bottom: 100%;
216+
left: 50%;
217+
margin-left: -5px;
218+
border-width: 5px;
219+
border-style: solid;
220+
border-color: transparent transparent #333 transparent;
221+
}
222+
223+
.tooltip:hover .tooltiptext {
224+
visibility: visible;
225+
opacity: 1;
226+
}
184227
</style>
185228
<script type="application/javascript">
186229
const grantsById = {};
@@ -434,7 +477,9 @@ <h3>
434477
</th>
435478
<th scope="col">
436479
<div class="text">
437-
<span>Std Dev</span>
480+
<span class="tooltip">Std Dev
481+
<span class="tooltiptext">Standard Deviation: measures reviewer disagreement. High value = controversial (needs discussion), Low value = consensus.</span>
482+
</span>
438483
</div>
439484
<div class="clear"></div>
440485
</th>

0 commit comments

Comments
 (0)