mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 18:18:25 -04:00
Merge pull request #2273 from GSA/2200-contextual-tooltips
2200 - Adding tooltip to Total messages header for explanation
This commit is contained in:
@@ -60,17 +60,6 @@ $failed: color('gray-cool-20');
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.usa-tooltip {
|
|
||||||
line-height: 1;
|
|
||||||
.usa-tooltip__body {
|
|
||||||
width: units(mobile);
|
|
||||||
font-size: size("body", 2);
|
|
||||||
height: auto;
|
|
||||||
white-space: wrap;
|
|
||||||
line-height: units(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|||||||
@@ -552,6 +552,24 @@ td.table-empty-message {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.usa-tooltip {
|
||||||
|
&__information {
|
||||||
|
background: color('ink');
|
||||||
|
margin-top: 4px;
|
||||||
|
color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
height: units(3);
|
||||||
|
width: units(3);
|
||||||
|
border: 1px solid color('ink');
|
||||||
|
}
|
||||||
|
.usa-tooltip__body {
|
||||||
|
min-width: units('card-lg');
|
||||||
|
max-width: units('mobile');
|
||||||
|
white-space: normal;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
|
|||||||
@@ -27,9 +27,20 @@
|
|||||||
{{ ajax_block(partials, updates_url, 'inbox') }}
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
||||||
|
|
||||||
<div id="totalMessageChartContainer" data-messages-sent="{{ messages_sent }}" data-messages-remaining="{{ messages_remaining }}">
|
<div id="totalMessageChartContainer" data-messages-sent="{{ messages_sent }}" data-messages-remaining="{{ messages_remaining }}">
|
||||||
<h2 id="chartTitle">Total messages</h2>
|
<div class="grid-row flex-align-center">
|
||||||
<svg id="totalMessageChart"></svg>
|
<h2 id="chartTitle" class="margin-right-1">Total messages</h2>
|
||||||
<div id="message"></div>
|
<button
|
||||||
|
type="button"
|
||||||
|
class="usa-tooltip usa-tooltip__information margin-right-0"
|
||||||
|
data-position="top"
|
||||||
|
title="Total messages track the sum of messages for the service: pending, failed, or delivered"
|
||||||
|
>
|
||||||
|
<span class="usa-sr-only">More information</span>
|
||||||
|
i
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<svg id="totalMessageChart"></svg>
|
||||||
|
<div id="message"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="totalMessageTable" class="margin-0"></div>
|
<div id="totalMessageTable" class="margin-0"></div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user