[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

@ -29,6 +29,9 @@
}
},
"CORE": {
"HEADER": {
"LOGO_ARIA": "Company Logo"
},
"FILE_SIZE": {
"BYTES": "Bytes",
"KB": "KB",

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();
}));

View File

@ -27,11 +27,13 @@ import { LayoutContainerComponent } from './components/layout-container/layout-c
import { SidebarActionMenuComponent, SidebarMenuDirective,
SidebarMenuExpandIconDirective, SidebarMenuTitleIconDirective } from './components/sidebar-action/sidebar-action-menu.component';
import { HeaderLayoutComponent } from './components/header/header.component';
import { TranslateModule } from '@ngx-translate/core';
@NgModule({
imports: [
CommonModule,
MaterialModule,
RouterModule
RouterModule,
TranslateModule.forChild()
],
exports: [
SidenavLayoutHeaderDirective,