* minor usage documentation

* colors added for some new tags
* tag text case doesn't matter in matching
This commit is contained in:
Dávid Danyi
2017-08-24 18:43:24 +02:00
parent c07ef0efcb
commit e434523925
3 changed files with 33 additions and 24 deletions

View File

@@ -30,19 +30,19 @@
}
.ui.divided.items > .item.blocker.bottom-separator {
border-bottom: 1px solid rgba(219, 40, 40, 0.5);
border-bottom: 3px double rgba(219, 40, 40, 0.5);
}
.ui.divided.items > .item.critical.bottom-separator {
border-bottom: 1px solid rgba(242, 113, 28, 0.5);
border-bottom: 3px double rgba(242, 113, 28, 0.5);
}
.ui.divided.items > .item.major.bottom-separator {
border-bottom: 1px solid rgba(181, 204, 24, 0.5);
border-bottom: 3px double rgba(181, 204, 24, 0.5);
}
.ui.divided.items > .item.minor.bottom-separator {
border-bottom: 1px solid rgba(0, 181, 173, 0.5);
border-bottom: 3px double rgba(0, 181, 173, 0.5);
}
/*Nothing below trivial, no separator needed*/

View File

@@ -8,9 +8,10 @@ const DEFAULT_AVATAR = '/assets/riddler.png';
const labelColors = {
TSP: 'teal',
MTAS: 'orange',
Internal: 'yellow',
Team: 'yellow',
INTERNAL: 'yellow',
TEAM: 'yellow',
BLOCKED: 'red',
SPIKE: 'purple',
};
@Component({
@@ -36,7 +37,7 @@ export class KanbanEntryItemComponent implements OnInit {
public labelClass(label: string): string {
try {
return labelColors[label];
return labelColors[label.toUpperCase()];
} catch(e) {
return 'white';
}