Skip to content
Snippets Groups Projects
Commit 4f69bd12 authored by Lukas Haase's avatar Lukas Haase
Browse files

fix scale bug, fix event bubble on space key press

parent b1d3ef8d
Branches
Tags
No related merge requests found
......@@ -244,12 +244,12 @@
</div>
<ars-col [width]="50" ars-flex-box>
<ars-row>
<button mat-icon-button style="margin-top:18px; transform: scale(1.8)" (click)="toggleSideList()">
<mat-icon style="color: yellow" class="icon-color" *ngIf="sidelistExpanded" aria-describedby="side-list-off"
<button mat-icon-button style="margin-top:18px" (click)="toggleSideList($event)">
<mat-icon class="icon-color-yellow" *ngIf="sidelistExpanded" aria-describedby="side-list-off"
matTooltip="{{'question-wall.side-list-off' | translate}}">
keyboard_double_arrow_right
</mat-icon>
<mat-icon style="color: yellow" class="icon-color" *ngIf="!sidelistExpanded" aria-describedby="side-list-on"
<mat-icon class="icon-color-yellow" *ngIf="!sidelistExpanded" aria-describedby="side-list-on"
matTooltip="{{'question-wall.side-list-on' | translate}}">
keyboard_double_arrow_left
</mat-icon>
......
......@@ -285,6 +285,10 @@
.icon-color {
color: var(--ars-button-color);
&-yellow{
color:yellow;
transform:scale(1.5);
}
}
}
......
......@@ -89,7 +89,14 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
}
}
toggleSideList(){
stopBubble(keyEvent:KeyboardEvent){
keyEvent.cancelBubble=true;
}
toggleSideList(event:MouseEvent){
if(event.detail===0){
return;
}
this.sidelistExpanded=!this.sidelistExpanded;
if(this.sidelistExpanded){
this.sidelist.setPx(450);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment