mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4973] CLONE - Header - sidenav menu button expanded/collapsed state not exposed via ARIA (#5179)
* Set aria expanded for the sidenav toggle bar * Define initialSidenavExpanded which can be set in the demo shell than as taken the same true or false value as the sideNav.expandedSidenav value. * Added some unit tests for the sidenav toggle aria-expanded behaviour * Update lib/core/layout/components/header/header.component.ts Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com> * Update lib/core/layout/components/header/header.component.html Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com> * Update demo-shell/src/app/components/app-layout/app-layout.component.html Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com> * Update lib/core/layout/components/header/header.component.html Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com> * As suggested from Denys remove initialSidnavExpanded property as we already have expandedSidenav * As suggested from Denys remove initialSidnavExpanded property as we already have expandedSidenav * As suggested from Denys remove initialSidnavExpanded property as we already have expandedSidenav
This commit is contained in:
committed by
Eugenio Romano
parent
6331979baa
commit
ef229dd300
@@ -49,13 +49,16 @@ export class HeaderLayoutComponent implements OnInit {
|
||||
@Input() showSidenavToggle: boolean = true;
|
||||
|
||||
/** Emitted when the sidenav button is clicked. */
|
||||
@Output() clicked = new EventEmitter<any>();
|
||||
@Output() clicked = new EventEmitter<boolean>();
|
||||
|
||||
@Input() expandedSidenav: boolean = true;
|
||||
|
||||
/** The side of the page that the drawer is attached to (can be 'start' or 'end') */
|
||||
@Input() position = 'start';
|
||||
|
||||
toggleMenu() {
|
||||
this.clicked.emit(true);
|
||||
this.expandedSidenav = !this.expandedSidenav;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
Reference in New Issue
Block a user