Skip to content

Commit 8181907

Browse files
committed
Added keyboard support for lesson toggle open/close in unit plan; fixed lesson title hover state for multiline titles. #2836
1 parent f4e8c16 commit 8181907

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/main/webapp/wise5/vle/nav-item/nav-item.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<ng-container *ngIf="nodeStatus.isVisible" [ngSwitch]="type">
22
<mat-card *ngSwitchCase="'card'" [ngClass]="{'expanded mat-elevation-z6': expanded}">
3-
<mat-card-header (click)="itemClicked($event)" role="button" matRipple fxLayout="row"
4-
tabindex="0" i18n-aria-label aria-label="Expand or collapse lesson content">
3+
<mat-card-header (click)="itemClicked($event)" (keyup.enter)="itemClicked($event)" role="button"
4+
matRipple fxLayout="row" tabindex="0" i18n-aria-label
5+
aria-label="Expand or collapse lesson content">
56
<node-icon mat-card-avatar class="group-icon" [nodeId]="nodeId" size="36"
67
[icon]="nodeStatus.icon"></node-icon>
78
<mat-card-title class="title" style="color: {{nodeStatus.icon.color}};">
@@ -36,8 +37,7 @@
3637
</mat-card-actions>
3738
</mat-card>
3839
<button mat-list-item class="list-item" *ngSwitchCase="'list'" (click)="itemClicked($event)"
39-
tabindex="0" i18n-title title="Go to {{nodeTitle}}"
40-
[ngClass]="{'group':isGroup}">
40+
tabindex="0" i18n-title title="Go to {{nodeTitle}}" [ngClass]="{'group':isGroup}">
4141
<node-icon matListAvatar [nodeId]="nodeId" [icon]="nodeStatus.icon"></node-icon>
4242
<p matLine>{{ nodeTitle }}</p>
4343
<div fxLayoutAlign="center center" fxLayoutGap="8px">

src/main/webapp/wise5/vle/nav-item/nav-item.component.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@
1515
}
1616

1717
.mat-card-header {
18+
cursor: pointer;
19+
1820
&:focus, &:hover {
1921
outline: none;
2022

2123
.title {
22-
border-bottom: 1px dashed #aaaaaa;
24+
text-decoration-line: underline;
25+
text-decoration-style: dashed;
26+
text-decoration-color: inherit;
27+
text-decoration-thickness: from-font;
2328
}
2429
}
2530
}

0 commit comments

Comments
 (0)