Added icons to issues list

This commit is contained in:
Quincy Morgan
2018-12-19 12:40:42 -05:00
parent c4fb38603e
commit a95af00b1d
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -2827,6 +2827,7 @@ div.full-screen > button:hover {
/* Issues List */
.issues-list label > span {
display: inline;
white-space: normal;
}
.issues-list li {
+6
View File
@@ -149,6 +149,12 @@ export function uiIssues(context) {
var label = enter
.append('label');
label
.call(
svgIcon(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
return '#iD-icon-'+iconSuffix;
}, 'pre-text'));
/*label
.append('input')
.attr('type', type)
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M6.89339828,2.5 L13.1066017,2.5 L17.5,6.89339828 L17.5,13.1066017 L13.1066017,17.5 L6.89339828,17.5 L2.5,13.1066017 L2.5,6.89339828 L6.89339828,2.5 Z M10.933,12.916 C10.933,12.828 10.908,12.755 10.857,12.696 C10.808,12.639 10.737,12.61 10.647,12.61 L9.347,12.61 C9.267,12.61 9.199,12.637 9.139,12.693 C9.079,12.748 9.05,12.823 9.05,12.916 L9.05,14.137 C9.05,14.225 9.079,14.296 9.139,14.348 C9.199,14.4 9.267,14.426 9.347,14.426 L10.647,14.426 C10.843,14.426 10.94,14.329 10.933,14.137 L10.933,12.916 Z M10.572,11.832 C10.65,11.832 10.719,11.802 10.779,11.745 C10.837,11.686 10.867,11.619 10.867,11.542 L10.994,6.289 C10.994,6.211 10.964,6.144 10.904,6.087 C10.846,6.028 10.777,6 10.697,6 L9.295,6 C9.207,6 9.132,6.028 9.08,6.087 C9.027,6.144 9,6.211 9,6.289 L9.103,11.542 C9.103,11.619 9.132,11.686 9.191,11.745 C9.249,11.802 9.318,11.832 9.397,11.832 L10.572,11.832 Z" fill="currentColor"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB