Skip to content
Snippets Groups Projects
Commit df172547 authored by Alexander Reifschneider's avatar Alexander Reifschneider
Browse files

OZG-8129 replace done icon

parent 860f8d92
Branches
Tags
1 merge request!131OZG-8129 replace mat icons
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.16245 13.5002L2.88745 9.2252L3.9562 8.15645L7.16245 11.3627L14.0437 4.48145L15.1125 5.5502L7.16245 13.5002Z" fill="#2D65BA"/>
</svg>
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
*/ */
export enum Icons { export enum Icons {
DELETE_FINALLY = 'delete_finally', DELETE_FINALLY = 'delete_finally',
DONE = 'done',
EDIT = 'edit', EDIT = 'edit',
INCOMING = 'incoming', INCOMING = 'incoming',
LOGO = 'logo', LOGO = 'logo',
......
...@@ -28,15 +28,12 @@ ...@@ -28,15 +28,12 @@
class="dot" class="dot"
[style.width]="diameter + 'px'" [style.width]="diameter + 'px'"
[style.height]="diameter + 'px'" [style.height]="diameter + 'px'"
[ngClass]="[ [ngClass]="[wiedervorlageResource.frist | toTrafficLight, wiedervorlageResource.done ? 'erledigt' : '']"
wiedervorlageResource.frist | toTrafficLight,
wiedervorlageResource.done ? 'erledigt' : ''
]"
data-test-class="dot" data-test-class="dot"
> >
<mat-icon class="done" *ngIf="wiedervorlageResource.done" data-test-class="done-icon" @if (wiedervorlageResource.done) {
>done</mat-icon <ods-icon name="check" class="absolute -left-0.5 top-1/2 -translate-y-1/2" fill="bewilligt" data-test-class="done-icon" />
> }
</div> </div>
</ng-container> </ng-container>
......
...@@ -39,14 +39,6 @@ ...@@ -39,14 +39,6 @@
display: flex; display: flex;
position: relative; position: relative;
.mat-icon {
position: absolute;
left: -2px;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
}
&.red:not(.erledigt) { &.red:not(.erledigt) {
background-color: mat.m2-get-color-from-palette($warnPalette); background-color: mat.m2-get-color-from-palette($warnPalette);
border-color: mat.m2-get-color-from-palette($warnPalette, darker); border-color: mat.m2-get-color-from-palette($warnPalette, darker);
...@@ -61,7 +53,3 @@ ...@@ -61,7 +53,3 @@
.content { .content {
margin-left: 4px; margin-left: 4px;
} }
.done {
color: green;
}
...@@ -23,8 +23,9 @@ ...@@ -23,8 +23,9 @@
*/ */
import { ToTrafficLightPipe } from '@alfa-client/tech-shared'; import { ToTrafficLightPipe } from '@alfa-client/tech-shared';
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatIcon } from '@angular/material/icon'; import { IconComponent } from '@ods/system';
import { createWiedervorlageResource } from 'libs/wiedervorlage-shared/test/wiedervorlage'; import { createWiedervorlageResource } from 'libs/wiedervorlage-shared/test/wiedervorlage';
import { MockComponent } from 'ng-mocks';
import { WiedervorlageStatusComponent } from './wiedervorlage-status.component'; import { WiedervorlageStatusComponent } from './wiedervorlage-status.component';
const doneIcon: string = '[data-test-class="done-icon"]'; const doneIcon: string = '[data-test-class="done-icon"]';
...@@ -36,7 +37,7 @@ describe('WiedervorlageStatusComponent', () => { ...@@ -36,7 +37,7 @@ describe('WiedervorlageStatusComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [WiedervorlageStatusComponent], declarations: [WiedervorlageStatusComponent],
imports: [MatIcon, ToTrafficLightPipe], imports: [MockComponent(IconComponent), ToTrafficLightPipe],
}).compileComponents(); }).compileComponents();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment