Skip to content
Extraits de code Groupes Projets
Valider 3bfa2ca6 rédigé par Matthieu Aubry's avatar Matthieu Aubry
Parcourir les fichiers

Merge pull request #7022 from munro98/master

Improved accessibility by putting offscreen text in the widget title
parents 4c259179 42997bf2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -445,6 +445,7 @@
"WeeklyReports": "Weekly reports",
"WellDone": "Well done!",
"Widgets": "Widgets",
"Widget": "Widget",
"XComparedToY": "%1$s compared to %2$s",
"XFromY": "%1$s from %2$s",
"YearlyReport": "yearly",
......
......@@ -128,12 +128,19 @@ h3.widgetName {
text-shadow: none;
}
.widgetNameOffScreen {
overflow: hidden;
width:1px;
height:1px;
}
// Overriding some dataTable css for better dashboard display
.widget .dataTableWrapper {
width: 100% !important;
}
.widgetTop .button {
line-height: 0px;
cursor: pointer;
float: right;
margin: 6px 6px 0 0;
......
......@@ -13,11 +13,14 @@
<div class="button" id="refresh">
<img src="plugins/Morpheus/images/refresh.png" title="{{ 'General_Refresh'|translate }}" />
</div>
<h3 class="widgetName">{% if widgetName is defined %}{{ widgetName }}{% endif %}</h3>
<h3 class="widgetName">{% if widgetName is defined %}{{ widgetName }}{% endif %}
<div class="widgetNameOffScreen">
{{ 'General_Widget'|translate }}
</div>
</h3>
</div>
<div class="widgetContent">
<div class="widgetLoading">{{ 'Dashboard_LoadingWidget'|translate }}</div>
</div>
</div>
</div>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter