Skip to content
Snippets Groups Projects
Commit a8bc1b29 authored by Paulina Nogal's avatar Paulina Nogal Committed by Joe Van Boxtel
Browse files

Cross browser accessibility fix continue

parent eaa3b888
No related branches found
No related tags found
No related merge requests found
<header ngClass.sm="hide-navigation-bar" ngClass.xs="hide-navigation-bar"> <header ngClass.sm="hide-navigation-bar" ngClass.xs="hide-navigation-bar" role="banner">
<cse-header></cse-header> <cse-header></cse-header>
<cse-navigation></cse-navigation> <cse-navigation></cse-navigation>
</header> </header>
<main> <main role="main">
<router-outlet></router-outlet> <router-outlet></router-outlet>
</main> </main>
<myuw-app-bar <myuw-app-bar
role="main"
theme-name="" theme-name=""
app-name="Course Search & Enroll" app-name="Course Search & Enroll"
app-url="https://my.wisc.edu"> app-url="https://my.wisc.edu">
<myuw-drawer slot="myuw-navigation" fxShow fxHide.gt-sm> <myuw-drawer slot="myuw-navigation" fxShow fxHide.gt-sm role="navigation" aria-label="Main Menu">
<myuw-drawer-link <myuw-drawer-link
slot="myuw-drawer-links" slot="myuw-drawer-links"
name="Course Search" name="Course Search"
icon="" icon=""
aria-label="course search"
href="/search"> href="/search">
</myuw-drawer-link> </myuw-drawer-link>
<myuw-drawer-link <myuw-drawer-link
slot="myuw-drawer-links" slot="myuw-drawer-links"
name="My Courses" name="My Courses"
icon="" icon=""
aria-label="my courses"
href="/my-courses"> href="/my-courses">
</myuw-drawer-link> </myuw-drawer-link>
<myuw-drawer-link <myuw-drawer-link
slot="myuw-drawer-links" slot="myuw-drawer-links"
name="Scheduler" name="Scheduler"
icon="" icon=""
aria-label="scheduler"
href="/scheduler"> href="/scheduler">
</myuw-drawer-link> </myuw-drawer-link>
<myuw-drawer-link <myuw-drawer-link
slot="myuw-drawer-links" slot="myuw-drawer-links"
name="Degree Planner" name="Degree Planner"
icon="" icon=""
aria-label="degree planner"
href="/degree-planner"> href="/degree-planner">
</myuw-drawer-link> </myuw-drawer-link>
<myuw-drawer-link <myuw-drawer-link
slot="myuw-drawer-links" slot="myuw-drawer-links"
name="Degree Audit (DARS)" name="Degree Audit (DARS)"
icon="" icon=""
aria-label="degree audit"
href="/dars"> href="/dars">
</myuw-drawer-link> </myuw-drawer-link>
</myuw-drawer> </myuw-drawer>
......
<div fxLayout="row" fxLayoutAlign="space-between center" class="nav-wrapper" > <div fxLayout="row" fxLayoutAlign="space-between center" class="nav-wrapper" >
<nav mat-tab-nav-bar fxHide fxShow.gt-sm> <nav mat-tab-nav-bar fxHide fxShow.gt-sm role="navigation" aria-label="Main Menu">
<a mat-tab-link href="/search">Search</a> <a mat-tab-link href="/search">Search</a>
<a mat-tab-link href="/my-courses">My courses</a> <a mat-tab-link href="/my-courses">My courses</a>
<a mat-tab-link href="/scheduler">Scheduler</a> <a mat-tab-link href="/scheduler">Scheduler</a>
<a mat-tab-link class="active" href="/degree-planner">Degree Planner</a> <a mat-tab-link class="active" href="/degree-planner">Degree Planner</a>
<a mat-tab-link href="/dars">Degree Audit (DARS)</a> <a mat-tab-link href="/dars">Degree Audit (DARS)</a>
</nav> </nav>
<button class="btn-feedback" (click)="onFeedbackClick()">Feedback</button> <button class="btn-feedback" aria-describedby="feedback-dialog" (click)="onFeedbackClick()">Feedback</button>
</div> </div>
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
font-family: Roboto, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-family: Roboto, 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
} }
@media screen and (max-width: 960px) { @media screen and (max-width: 960px) {
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
fxLayout="column" fxLayout="column"
fxLayoutAlign="space-between start" fxLayoutAlign="space-between start"
fxFlex="80" fxFlex="80"
aria-labelledby="courseMenu"
aria-haspopup="true"> aria-haspopup="true">
<div fxLayout="row" fxLayoutAlign="start center"> <div fxLayout="row" fxLayoutAlign="start center">
<div class="icon-number-wrapper"> <div class="icon-number-wrapper">
...@@ -91,7 +90,7 @@ ...@@ -91,7 +90,7 @@
</button> </button>
<mat-menu #courseMenu="matMenu" class="course-item-menu" isFocusable="true" isTabbable="true"> <mat-menu #courseMenu="matMenu" class="course-item-menu" isFocusable="true" isTabbable="true">
<ng-template matMenuContent> <ng-template matMenuContent>
<button mat-menu-item (click)="openCourseDetailsDialog()" aria-label="Open dialog to see course details"> <button mat-menu-item (click)="openCourseDetailsDialog()" aria-describedby="course-details-content" aria-label="Open dialog to see course details">
Course Details Course Details
</button> </button>
<button mat-menu-item [matMenuTriggerFor]="academicYearsGroup" aria-label="Select to move this course to a different term"> <button mat-menu-item [matMenuTriggerFor]="academicYearsGroup" aria-label="Select to move this course to a different term">
......
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
border-color: map-get($uw-primary, 500); border-color: map-get($uw-primary, 500);
box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.25); box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.25);
} }
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
&.disabled { &.disabled {
background-color: #dee1e2; background-color: #dee1e2;
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
class="term-header" class="term-header"
fxLayoutAlign="space-between center" fxLayoutAlign="space-between center"
> >
<h2 tabindex="0">{{ termCode | getTermDescription }}</h2> <h2 tabindex="0" class="term-description">{{ termCode | getTermDescription }}</h2>
<div fxLayout="row" fxLayoutAlign="space-between center"> <div fxLayout="row" fxLayoutAlign="space-between center">
<p class="text-right semi-bold credits"> <p class="text-right semi-bold credits">
<span *ngIf="visibleCredits === 'planned'"> <span *ngIf="visibleCredits === 'planned'">
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
} }
} }
.term-description {
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
}
/deep/.mat-tab-label, /deep/.mat-tab-label,
/deep/.mat-tab-label-active { /deep/.mat-tab-label-active {
min-width: 0 !important; min-width: 0 !important;
......
...@@ -175,7 +175,7 @@ body { ...@@ -175,7 +175,7 @@ body {
.mat-expansion-panel-header { .mat-expansion-panel-header {
font-size: 18px; font-size: 18px;
&:focus { &:focus {
outline: 2px solid #5e9ed6; outline: 2px solid #5e9ed6 !important;
outline: -webkit-focus-ring-color auto 5px !important; outline: -webkit-focus-ring-color auto 5px !important;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment