Skip to content

Commit

Permalink
Add link to anchor tag for accessability (#12541)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexong authored Aug 2, 2023
1 parent 37c81b8 commit 0a7f8aa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ exports[`InstructorHomePageComponent should snap with one course with one feedba
>
<a
class="btn-archive-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
tmrouterlink="./"
>
Archive
</a>
Expand All @@ -535,13 +537,17 @@ exports[`InstructorHomePageComponent should snap with one course with one feedba
</a>
<a
class="btn-copy-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Copy the course and its corresponding sessions"
tmrouterlink="./"
>
Copy
</a>
<a
class="btn-delete-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Delete the course and its corresponding students and sessions"
tmrouterlink="./"
>
Delete
</a>
Expand Down Expand Up @@ -1098,7 +1104,9 @@ exports[`InstructorHomePageComponent should snap with one course with two feedba
>
<a
class="btn-archive-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
tmrouterlink="./"
>
Archive
</a>
Expand Down Expand Up @@ -1848,7 +1856,9 @@ exports[`InstructorHomePageComponent should snap with one course with unexpanded
>
<a
class="btn-archive-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
tmrouterlink="./"
>
Archive
</a>
Expand All @@ -1861,13 +1871,17 @@ exports[`InstructorHomePageComponent should snap with one course with unexpanded
</a>
<a
class="btn-copy-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Copy the course and its corresponding sessions"
tmrouterlink="./"
>
Copy
</a>
<a
class="btn-delete-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Delete the course and its corresponding students and sessions"
tmrouterlink="./"
>
Delete
</a>
Expand Down Expand Up @@ -2103,7 +2117,9 @@ exports[`InstructorHomePageComponent should snap with one course with unpopulate
>
<a
class="btn-archive-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
tmrouterlink="./"
>
Archive
</a>
Expand All @@ -2116,13 +2132,17 @@ exports[`InstructorHomePageComponent should snap with one course with unpopulate
</a>
<a
class="btn-copy-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Copy the course and its corresponding sessions"
tmrouterlink="./"
>
Copy
</a>
<a
class="btn-delete-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Delete the course and its corresponding students and sessions"
tmrouterlink="./"
>
Delete
</a>
Expand Down Expand Up @@ -2382,7 +2402,9 @@ exports[`InstructorHomePageComponent should snap with one course without feedbac
>
<a
class="btn-archive-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
tmrouterlink="./"
>
Archive
</a>
Expand All @@ -2395,13 +2417,17 @@ exports[`InstructorHomePageComponent should snap with one course without feedbac
</a>
<a
class="btn-copy-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Copy the course and its corresponding sessions"
tmrouterlink="./"
>
Copy
</a>
<a
class="btn-delete-course btn btn-light btn-sm dropdown-item"
href="/"
ngbtooltip="Delete the course and its corresponding students and sessions"
tmrouterlink="./"
>
Delete
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,24 @@ <h1>Home</h1>
<div ngbDropdownMenu (click)="$event.stopPropagation()">
<a class="btn-archive-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
(click)="archiveCourse(courseTabModel.course.courseId)"> Archive
(click)="archiveCourse(courseTabModel.course.courseId)"
tmRouterLink="./"> Archive
</a>
<a class="btn btn-light btn-sm dropdown-item" tmRouterLink='/web/instructor/courses/edit'
[queryParams]="{courseid: courseTabModel.course.courseId}"> View / Edit
</a>
<ng-container *ngIf="courseTabModel.instructorPrivilege.canModifyCourse">
<a class="btn-copy-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Copy the course and its corresponding sessions"
(click)="!isCopyingCourse && onCopy(courseTabModel.course.courseId, courseTabModel.course.courseName, courseTabModel.course.timeZone)"> Copy
(click)="!isCopyingCourse && onCopy(courseTabModel.course.courseId, courseTabModel.course.courseName, courseTabModel.course.timeZone)"
tmRouterLink="./"> Copy
</a>
</ng-container>
<ng-container *ngIf="courseTabModel.instructorPrivilege.canModifyCourse">
<a class="btn-delete-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Delete the course and its corresponding students and sessions"
(click)="deleteCourse(courseTabModel.course.courseId)"> Delete
(click)="deleteCourse(courseTabModel.course.courseId)"
tmRouterLink="./"> Delete
</a>
</ng-container>
</div>
Expand Down

0 comments on commit 0a7f8aa

Please sign in to comment.