[ADF-3880] fix header logo a11y (#4114)

* fix header logo a11y

* fix test
This commit is contained in:
Denys Vuika
2019-01-09 17:28:47 +00:00
committed by Eugenio Romano
parent aee34184ca
commit be4978a91c
4 changed files with 8 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
</button>
<a [routerLink]="redirectUrl" title="{{ tooltip }}">
<img src="{{logo}}" class="adf-app-logo"/>
<img src="{{logo}}" class="adf-app-logo" alt="{{ 'CORE.HEADER.LOGO_ARIA' | translate }}"/>
</a>
<span [routerLink]="redirectUrl" fxFlex="1 1 auto" fxShow fxHide.lt-sm="true" class="adf-app-title">{{title}}</span>

View File

@@ -154,7 +154,7 @@ describe('HeaderLayoutComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [HeaderLayoutTesterComponent],
imports: [ LayoutModule, MaterialModule, RouterTestingModule ]
imports: [ CoreTestingModule, LayoutModule, MaterialModule, RouterTestingModule ]
})
.compileComponents();
}));