Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Commit

Permalink
Make disabled buttons not reachable by tab (#297)
Browse files Browse the repository at this point in the history
- Feature number 13 in the list (group 8)
- This patch fixes the tool buttons behaviours so that when they are
  disabled, thay are not reachable by the tab button
  • Loading branch information
roostaamir authored and munterkalmsteiner committed Oct 15, 2018
1 parent d665080 commit e399edf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form *ngIf="isEnabled && connected" class="form-inline">
<button id="commoncontrol-save-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'save' | translate}}" [ngClass]="{'disabled': !isSaveEnabled}" (click)="cancelEvent($event); save()"><i class="fa fa-save" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-undo-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'undo' | translate}}" [ngClass]="{'disabled': !isUndoEnabled}" (click)="cancelEvent($event); undo()"><i class="fa fa-undo" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-forward-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'navigate.back' | translate}}" [ngClass]="{'disabled': !isBackEnabled}" (click)="cancelEvent($event); back()"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-back-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'navigate.forward' | translate}}" [ngClass]="{'disabled': !isForwardEnabled}" (click)="cancelEvent($event); forward()"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-save-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'save' | translate}}" disabled="{{!isSaveEnabled ? 'disabled' : ''}}" [ngClass]="{'disabled': !isSaveEnabled}" (click)="cancelEvent($event); save()"><i class="fa fa-save" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-undo-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'undo' | translate}}" disabled="{{!isUndoEnabled ? 'disabled' : ''}}" [ngClass]="{'disabled': !isUndoEnabled}" (click)="cancelEvent($event); undo()"><i class="fa fa-undo" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-forward-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'navigate.back' | translate}}" disabled="{{!isBackEnabled ? 'disabled' : ''}}" [ngClass]="{'disabled': !isBackEnabled}" (click)="cancelEvent($event); back()"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></button>&nbsp;
<button id="commoncontrol-back-button" class="btn btn-secondary btn-sm brighter-secondary-outline" title="{{'navigate.forward' | translate}}" disabled="{{!isForwardEnabled ? 'disabled' : ''}}" [ngClass]="{'disabled': !isForwardEnabled}" (click)="cancelEvent($event); forward()"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></button>&nbsp;
</form>
<div *ngIf="!connected" class="btn btn-outline-danger btn-sm" title="{{'connection.lost' | translate}}"><i aria-hidden="true" class="fa fa-exclamation-triangle"></i>&nbsp;{{'connection.lost' | translate}}</div>

0 comments on commit e399edf

Please sign in to comment.