mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-3880] fix header logo a11y (#4114)
* fix header logo a11y * fix test
This commit is contained in:
parent
aee34184ca
commit
be4978a91c
@ -29,6 +29,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"CORE": {
|
"CORE": {
|
||||||
|
"HEADER": {
|
||||||
|
"LOGO_ARIA": "Company Logo"
|
||||||
|
},
|
||||||
"FILE_SIZE": {
|
"FILE_SIZE": {
|
||||||
"BYTES": "Bytes",
|
"BYTES": "Bytes",
|
||||||
"KB": "KB",
|
"KB": "KB",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a [routerLink]="redirectUrl" title="{{ tooltip }}">
|
<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>
|
</a>
|
||||||
|
|
||||||
<span [routerLink]="redirectUrl" fxFlex="1 1 auto" fxShow fxHide.lt-sm="true" class="adf-app-title">{{title}}</span>
|
<span [routerLink]="redirectUrl" fxFlex="1 1 auto" fxShow fxHide.lt-sm="true" class="adf-app-title">{{title}}</span>
|
||||||
|
@ -154,7 +154,7 @@ describe('HeaderLayoutComponent', () => {
|
|||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [HeaderLayoutTesterComponent],
|
declarations: [HeaderLayoutTesterComponent],
|
||||||
imports: [ LayoutModule, MaterialModule, RouterTestingModule ]
|
imports: [ CoreTestingModule, LayoutModule, MaterialModule, RouterTestingModule ]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
@ -27,11 +27,13 @@ import { LayoutContainerComponent } from './components/layout-container/layout-c
|
|||||||
import { SidebarActionMenuComponent, SidebarMenuDirective,
|
import { SidebarActionMenuComponent, SidebarMenuDirective,
|
||||||
SidebarMenuExpandIconDirective, SidebarMenuTitleIconDirective } from './components/sidebar-action/sidebar-action-menu.component';
|
SidebarMenuExpandIconDirective, SidebarMenuTitleIconDirective } from './components/sidebar-action/sidebar-action-menu.component';
|
||||||
import { HeaderLayoutComponent } from './components/header/header.component';
|
import { HeaderLayoutComponent } from './components/header/header.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
RouterModule
|
RouterModule,
|
||||||
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
SidenavLayoutHeaderDirective,
|
SidenavLayoutHeaderDirective,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user