Added colors to issue list icons

Corrected icon for warnings
Made disconnected_highway issue a warning instead of an error
This commit is contained in:
Quincy Morgan
2018-12-19 13:07:47 -05:00
parent a95af00b1d
commit 6a931f9be6
3 changed files with 16 additions and 8 deletions
+9 -1
View File
@@ -2825,7 +2825,9 @@ div.full-screen > button:hover {
}
/* Issues List */
.issues-list label {
padding: 5px;
}
.issues-list label > span {
display: inline;
white-space: normal;
@@ -2837,9 +2839,15 @@ div.full-screen > button:hover {
.issues-list li.severity-warning {
background: #ffb;
}
.issues-list li.severity-warning .icon {
color: #FFB300
}
.issues-list li.severity-error {
background: #FFD5D4;
}
.issues-list li.severity-error .icon {
color: #DD1400
}
/* Background - Display Options Sliders
------------------------------------------------------- */
+6 -6
View File
@@ -149,12 +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.each(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
d3_select(this)
.call(svgIcon('#iD-icon-' + iconSuffix, 'pre-text'));
});
/*label
.append('input')
.attr('type', type)
+1 -1
View File
@@ -46,7 +46,7 @@ export function validationDisconnectedHighway(context) {
issues.push(new validationIssue({
type: ValidationIssueType.disconnected_highway,
severity: ValidationIssueSeverity.error,
severity: ValidationIssueSeverity.warning,
message: t('validations.disconnected_highway', {entityLabel: entityLabel}),
tooltip: t('validations.disconnected_highway_tooltip'),
entities: [entity],