Skip to content

Commit

Permalink
Merge pull request #823 from bcgov/feature/dss-697-home-page-accessib…
Browse files Browse the repository at this point in the history
…ilty

DSS-667 Fixed accessibility issues in the layout component
  • Loading branch information
lisa-forsyth authored Nov 26, 2024
2 parents 0d3acb3 + 76dc1a7 commit bc94590
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions frontend/src/app/common/layout/layout.component.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
<div class="header">
<div class="header" role="banner">
<div class="header-top">
<div class="tile-container">
<div class="logo-container"></div>
<div class="main-title">Short-Term Rental Data Portal</div>
<div>
<h1 class="main-title">Short-Term Rental Data Portal</h1>
</div>
</div>
<div *ngIf="userDataService.currentUser" class="user-container">
{{userDataService.currentUser.displayName || 'Unknown User'}} <button pButton class="do-not-print-it"
icon="pi pi-angle-down" (click)="op.toggle($event)"></button>
{{userDataService.currentUser.displayName || 'Unknown User'}} <button aria-label="Toggle dropdown to logout"
pButton class="do-not-print-it" icon="pi pi-angle-down" (click)="op.toggle($event)"></button>
<p-overlayPanel #op>
<button pButton [iconPos]="'right'" class="p-button-transparent" icon="pi pi-sign-out"
(click)="logout()">Logout</button>
<button pButton [iconPos]="'right'" aria-label="Log out" class="p-button-transparent"
icon="pi pi-sign-out" (click)="logout()">Logout</button>
</p-overlayPanel>
</div>
</div>
<div class="header-menu do-not-print-it">
<div class="menu-container">
<div class="menu-container" role="navigation" aria-label="Main Navigation">
<p-menubar [model]="items"></p-menubar>
</div>
</div>
</div>

<div class="content">
<div class="content" role="main">
<router-outlet />
</div>
<div class="footer do-not-print-it">
<div class="footer do-not-print-it" role="footerinfo">
<div class="cc">© 2024 Government of British Columbia.</div>
</div>

Expand Down

0 comments on commit bc94590

Please sign in to comment.