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

OZG-8129 replace mail icon

parent 7fbd9d7f
No related branches found
No related tags found
1 merge request!131OZG-8129 replace mat icons
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/></svg>
\ No newline at end of file
...@@ -22,6 +22,5 @@ ...@@ -22,6 +22,5 @@
* unter der Lizenz sind dem Lizenztext zu entnehmen. * unter der Lizenz sind dem Lizenztext zu entnehmen.
*/ */
export enum Icons { export enum Icons {
MAIL = 'mail',
PDF_EXPORT = 'pdf_export', PDF_EXPORT = 'pdf_export',
} }
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
unter der Lizenz sind dem Lizenztext zu entnehmen. unter der Lizenz sind dem Lizenztext zu entnehmen.
--> -->
<mat-icon <ods-icon
name="mailbox"
fill="text"
data-test-class="postfach-icon-mat-icon" data-test-class="postfach-icon-mat-icon"
svgIcon="mail"
matBadge="&NoBreak;" matBadge="&NoBreak;"
[matBadgeHidden]="!showBadge" [matBadgeHidden]="!showBadge"
matBadgeSize="small" matBadgeSize="small"
> />
</mat-icon>
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
import { getElementFromFixture } from '@alfa-client/test-utils'; import { getElementFromFixture } from '@alfa-client/test-utils';
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatBadge, MatBadgeModule } from '@angular/material/badge'; import { MatBadge, MatBadgeModule } from '@angular/material/badge';
import { MatIcon } from '@angular/material/icon'; import { IconComponent } from '@ods/system';
import { MatIconTestingModule } from '@angular/material/icon/testing';
import { getDataTestClassOf } from 'libs/tech-shared/test/data-test'; import { getDataTestClassOf } from 'libs/tech-shared/test/data-test';
import { MockComponent } from 'ng-mocks';
import { PostfachIconComponent } from './postfach-icon.component'; import { PostfachIconComponent } from './postfach-icon.component';
describe('PostfachIconComponent', () => { describe('PostfachIconComponent', () => {
...@@ -37,7 +37,7 @@ describe('PostfachIconComponent', () => { ...@@ -37,7 +37,7 @@ describe('PostfachIconComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [MatIconTestingModule, MatBadgeModule, MatBadge, MatIcon, PostfachIconComponent], imports: [MatBadgeModule, MatBadge, PostfachIconComponent, MockComponent(IconComponent)],
}).compileComponents(); }).compileComponents();
}); });
...@@ -58,7 +58,6 @@ describe('PostfachIconComponent', () => { ...@@ -58,7 +58,6 @@ describe('PostfachIconComponent', () => {
const icon: HTMLElement = getElementFromFixture(fixture, postfachIcon); const icon: HTMLElement = getElementFromFixture(fixture, postfachIcon);
expect(icon).toHaveClass('mat-icon');
expect(icon).toHaveClass('mat-badge-hidden'); expect(icon).toHaveClass('mat-badge-hidden');
}); });
......
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
*/ */
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { MatBadge } from '@angular/material/badge'; import { MatBadge } from '@angular/material/badge';
import { MatIcon } from '@angular/material/icon'; import { IconComponent } from '@ods/system';
@Component({ @Component({
selector: 'ozgcloud-postfach-icon', selector: 'ozgcloud-postfach-icon',
templateUrl: './postfach-icon.component.html', templateUrl: './postfach-icon.component.html',
styleUrls: ['./postfach-icon.component.scss'], styleUrls: ['./postfach-icon.component.scss'],
standalone: true, standalone: true,
imports: [MatIcon, MatBadge], imports: [MatBadge, IconComponent],
}) })
export class PostfachIconComponent { export class PostfachIconComponent {
@Input() showBadge: boolean = false; @Input() showBadge: boolean = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment