Skip to content

Commit 3631f53

Browse files
committed
[Scorecards] Added tooltip to year variation element
1 parent adc38a3 commit 3631f53

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

scoring/templates/scoring/council.html

+7-9
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
282282
<!-- TODO: Change text-success to text-dark if there is no variation -->
283283
<!-- TODO: If there is no variation then display '-' -->
284284
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
285-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+5%</p>
285+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
286286
</td>
287287
{% else %}
288288
<td class="score border-bottom border-opacity-25 border-primary is--section-score">
@@ -293,7 +293,7 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
293293
<!-- TODO: Change text-success to text-dark if there is no variation -->
294294
<!-- TODO: If there is no variation then display '-' -->
295295
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
296-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+5%</p>
296+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
297297
</td>
298298
{% endif %}
299299

@@ -307,7 +307,7 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
307307
<!-- TODO: If there is no variation then display '-' -->
308308
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
309309
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
310-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+5%</p>
310+
<button button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
311311
</td>
312312
{% endfor %}
313313

@@ -335,7 +335,7 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
335335
<!-- TODO: If there is no variation then display '-' -->
336336
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
337337
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
338-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+1</p>
338+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
339339
</td>
340340

341341
{% for comparison in answer.comparisons %}
@@ -348,7 +348,7 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
348348
<!-- TODO: If there is no variation then display '-' -->
349349
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
350350
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
351-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+1</p>
351+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
352352
</td>
353353
{% endfor %}
354354

@@ -378,27 +378,25 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
378378
</td>
379379
<td class="score border-bottom border-opacity-25 border-primary is--section-score">
380380
{{ plan_score.weighted_total|floatformat:0 }}%
381-
<span>{{ section.weighted_score|floatformat:0 }}%</span>
382381
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
383382
<!-- TODO: Change text-success to text-danger if variation is negative -->
384383
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
385384
<!-- TODO: Change text-success to text-dark if there is no variation -->
386385
<!-- TODO: If there is no variation then display '-' -->
387386
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
388-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+5%</p>
387+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
389388
</td>
390389

391390
{% for comparison in comparisons %}
392391
<td class="d-none d-md-table-cell score border-bottom border-opacity-25 border-primary is--section-score">
393392
{{ comparison.weighted_total|floatformat:0 }}%
394-
<span>{{ section.weighted_score|floatformat:0 }}%</span>
395393
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
396394
<!-- TODO: Change text-success to text-danger if variation is negative -->
397395
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
398396
<!-- TODO: Change text-success to text-dark if there is no variation -->
399397
<!-- TODO: If there is no variation then display '-' -->
400398
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
401-
<p class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success">+5%</p>
399+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
402400
</td>
403401
{% endfor %}
404402

0 commit comments

Comments
 (0)