Skip to content
Snippets Groups Projects
Commit 60ddfee9 authored by pnogal's avatar pnogal Committed by Paulina Nogal
Browse files

Add focus state and style to tabbable elements

parent e1756bbb
No related branches found
No related tags found
No related merge requests found
Pipeline #36208 passed
...@@ -30,6 +30,7 @@ myuw-help { ...@@ -30,6 +30,7 @@ myuw-help {
background: transparent; background: transparent;
} }
} }
button#myuw-three-dot { button#myuw-three-dot {
width: 34px; width: 34px;
height: 34px; height: 34px;
...@@ -41,3 +42,14 @@ button#myuw-three-dot { ...@@ -41,3 +42,14 @@ button#myuw-three-dot {
line-height: 28px; line-height: 28px;
background: rgb(142, 26, 17); background: rgb(142, 26, 17);
} }
myuw-help,
myuw-drawer,
myuw-profile,
#myuw-three-dot,
#myuw-help__close-button {
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
}
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
.mat-tab-link { .mat-tab-link {
opacity: 1; opacity: 1;
min-width: auto; min-width: auto;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.mat-tab-link.active { .mat-tab-link.active {
border-bottom: 2px solid map-get($uw-primary, 500); border-bottom: 2px solid map-get($uw-primary, 500);
......
...@@ -41,6 +41,10 @@ mat-sidenav { ...@@ -41,6 +41,10 @@ mat-sidenav {
.primary-star { .primary-star {
margin-right: 12px; margin-right: 12px;
} }
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*ngSwitchCase="'InProgress'" *ngSwitchCase="'InProgress'"
class="material-icons in-progress-icon" class="material-icons in-progress-icon"
alt="Course in progress" alt="Course in progress"
aria-label="Course in progress"
matTooltip="Course in progress" matTooltip="Course in progress"
matTooltipPosition="above"> matTooltipPosition="above">
check_circle check_circle
...@@ -33,6 +34,7 @@ ...@@ -33,6 +34,7 @@
*ngSwitchCase="'Waitlisted'" *ngSwitchCase="'Waitlisted'"
class="material-icons problem-icon" class="material-icons problem-icon"
alt="Course is waitlisted" alt="Course is waitlisted"
aria-label="Course is waitlisted"
matTooltip="Course is waitlisted" matTooltip="Course is waitlisted"
matTooltipPosition="above"> matTooltipPosition="above">
report_problem report_problem
...@@ -41,6 +43,7 @@ ...@@ -41,6 +43,7 @@
*ngSwitchCase="'Incomplete'" *ngSwitchCase="'Incomplete'"
class="material-icons cancel-icon" class="material-icons cancel-icon"
alt="Course is incomplete" alt="Course is incomplete"
aria-label="Course is incomplete"
matTooltip="Course is incomplete" matTooltip="Course is incomplete"
matTooltipPosition="above"> matTooltipPosition="above">
cancel cancel
...@@ -49,6 +52,7 @@ ...@@ -49,6 +52,7 @@
*ngSwitchCase="'NotOfferedInTerm'" *ngSwitchCase="'NotOfferedInTerm'"
class="material-icons error-icon" class="material-icons error-icon"
alt="Course not offered in term" alt="Course not offered in term"
aria-label="Course is not offered in term"
matTooltip="Course is not offered in term" matTooltip="Course is not offered in term"
matTooltipPosition="above"> matTooltipPosition="above">
error error
...@@ -57,6 +61,7 @@ ...@@ -57,6 +61,7 @@
*ngSwitchCase="'NoLongerOffered'" *ngSwitchCase="'NoLongerOffered'"
class="material-icons not-offered-icon" class="material-icons not-offered-icon"
alt="Course no longer offered" alt="Course no longer offered"
aria-label="Course no longer offered"
matTooltip="Course no longer offered" matTooltip="Course no longer offered"
matTooltipPosition="above"> matTooltipPosition="above">
remove remove
......
...@@ -53,10 +53,13 @@ ...@@ -53,10 +53,13 @@
text-align: center; text-align: center;
font-size: 24px; font-size: 24px;
line-height: 1; line-height: 1;
&:hover, &:hover {
&:focus {
opacity: 0.8; opacity: 0.8;
} }
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
} }
...@@ -69,12 +72,20 @@ ...@@ -69,12 +72,20 @@
width: 24px; width: 24px;
height: 24px; height: 24px;
line-height: 20px; line-height: 20px;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.material-icons { .material-icons {
padding-top: 0; padding-top: 0;
position: relative; position: relative;
top: 1px; top: 1px;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.course-number { .course-number {
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
.material-icons { .material-icons {
padding-right: 8px; padding-right: 8px;
} }
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
#course-key-list { #course-key-list {
......
...@@ -17,7 +17,11 @@ ...@@ -17,7 +17,11 @@
/deep/.mat-tab-label-active { /deep/.mat-tab-label-active {
min-width: 0 !important; min-width: 0 !important;
padding: 0px 10px !important; padding: 0px 10px !important;
margin: 0px !important; margin: 3px !important;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px !important;
}
} }
/deep/.mat-tab-header { /deep/.mat-tab-header {
...@@ -80,10 +84,13 @@ ...@@ -80,10 +84,13 @@
line-height: 20px; line-height: 20px;
margin-left: 5px; margin-left: 5px;
color: #2879a8; color: #2879a8;
&:hover, &:hover {
&:focus {
opacity: 0.8; opacity: 0.8;
} }
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
} }
......
.year-container {
padding: 4px;
}
...@@ -43,6 +43,10 @@ body { ...@@ -43,6 +43,10 @@ body {
font-weight: 400 !important; font-weight: 400 !important;
letter-spacing: 1px; letter-spacing: 1px;
font-size: 14px; font-size: 14px;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.btn-primary { .btn-primary {
...@@ -54,10 +58,18 @@ body { ...@@ -54,10 +58,18 @@ body {
color: map-get($uw-primary, 500) !important; color: map-get($uw-primary, 500) !important;
border: 1px solid #b7b7b7 !important; border: 1px solid #b7b7b7 !important;
border-radius: 4px !important; border-radius: 4px !important;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.btn-link { .btn-link {
color: map-get($uw-primary, 500) !important; color: map-get($uw-primary, 500) !important;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.btn-delete { .btn-delete {
...@@ -93,19 +105,41 @@ body { ...@@ -93,19 +105,41 @@ body {
.not-offered-icon { .not-offered-icon {
font-size: 24px !important; font-size: 24px !important;
margin-left: 5px; margin-left: 5px;
&:hover, &:hover {
&:focus {
cursor: default; cursor: default;
opacity: 0.9; opacity: 0.9;
} }
&:focus {
outline: -webkit-focus-ring-color auto 5px;
}
}
.mat-expansion-panel-header.mat-expanded {
margin: 4px;
}
.mat-select-panel .mat-option:focus,
.mat-option.mat-active {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
} }
.mat-icon, .mat-icon,
.material-icons { .mat-icon-button,
&:hover, .material-icons,
&:focus { .add-course-button,
.mat-button,
.mat-menu-item,
.mat-primary,
.mat-form-field,
#menu-toggle-btn {
&:hover {
opacity: 0.8; opacity: 0.8;
} }
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
.cdk-drop-list-dragging { .cdk-drop-list-dragging {
...@@ -158,6 +192,10 @@ body { ...@@ -158,6 +192,10 @@ body {
.mat-expansion-panel-header { .mat-expansion-panel-header {
font-size: 18px; font-size: 18px;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px !important;
}
} }
.mat-expanded, .mat-expanded,
...@@ -173,6 +211,9 @@ body { ...@@ -173,6 +211,9 @@ body {
.mat-menu-content { .mat-menu-content {
width: 200px !important; width: 200px !important;
} }
.mat-menu-content {
margin: 0px 3px;
}
.saved-for-later-list { .saved-for-later-list {
border-bottom: 1px solid #f1f1f1 !important; border-bottom: 1px solid #f1f1f1 !important;
...@@ -198,6 +239,10 @@ body { ...@@ -198,6 +239,10 @@ body {
} }
.close-btn { .close-btn {
min-height: 55px; min-height: 55px;
&:focus {
outline: auto;
outline: -webkit-focus-ring-color auto 5px;
}
} }
} }
......
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