Skip to content

Commit

Permalink
Add not focusable
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki Tobias Elble committed May 7, 2024
1 parent fb34e29 commit d7d4148
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<ng-template #totalTimeDialog>
<h2 mat-dialog-title>{{ currentEntry.name }}</h2>
<mat-dialog-content class="os-form-card-mobile">
<form [formGroup]="totalTimeForm" (keydown)="onKeyDown($event)">
<form [formGroup]="totalTimeForm" (keydown)="onKeyDown($event)" tabindex="-1">
<!-- total time -->
<mat-form-field>
<mat-label>{{ 'Total time' | translate }}</mat-label>
Expand All @@ -77,7 +77,7 @@ <h2 mat-dialog-title>{{ currentEntry.name }}</h2>

<mat-dialog-actions>
<button mat-button [disabled]="!totalTimeForm.valid" [mat-dialog-close]="true">
<span>{{ 'Reset' | translate }}</span>
<span>{{ 'OK' | translate }}</span>
</button>
<button mat-button [mat-dialog-close]="false">
<span>{{ 'Cancel' | translate }}</span>
Expand All @@ -89,7 +89,7 @@ <h2 mat-dialog-title>{{ currentEntry.name }}</h2>
<ng-template #addRemoveTimeDialog>
<h2 mat-dialog-title>{{ currentEntry.name }}</h2>
<div class="os-form-card-mobile" mat-dialog-content>
<form (keydown)="onKeyDown($event)">
<form (keydown)="onKeyDown($event)" tabindex="-1">
<!-- total time -->
<mat-form-field>
<mat-label>{{ 'Time' | translate }}</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3>
</div>
</ng-container>

<form *ngIf="editTopic && topicForm" [formGroup]="topicForm" (keydown)="onKeyDown($event)">
<form *ngIf="editTopic && topicForm" [formGroup]="topicForm" (keydown)="onKeyDown($event)" tabindex="-1">
<div>
<mat-form-field>
<mat-label>{{ 'Title' | translate }}</mat-label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 mat-dialog-title *ngIf="item">{{ 'Edit details for' | translate }} {{ item.getTitle() }}</h1>
<mat-dialog-content>
<form class="item-dialog-form" [formGroup]="agendaInfoForm" (keydown)="onKeyDown($event)">
<form class="item-dialog-form" [formGroup]="agendaInfoForm" (keydown)="onKeyDown($event)" tabindex="-1">
<!-- Tag -->
<mat-form-field *ngIf="isTagAvailable()">
<mat-label>{{ 'Tags' | translate }}</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1 mat-dialog-title>
<span>{{ 'Edit details for' | translate }} {{ selectedCategory.prefixedName }}</span>
</h1>
<mat-dialog-content class="os-form-card-mobile">
<form class="edit-form" [formGroup]="editForm" (ngSubmit)="save()" (keydown)="onKeyDown($event)">
<form class="edit-form" [formGroup]="editForm" (ngSubmit)="save()" (keydown)="onKeyDown($event)" tabindex="-1">
<mat-form-field>
<mat-label>{{ 'Prefix' | translate }}</mat-label>
<input matInput osAutofocus formControlName="prefix" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1 mat-dialog-title>
<span>{{ 'New category' | translate }}</span>
</h1>
<mat-dialog-content class="os-form-card-mobile">
<form [formGroup]="createForm" (keydown)="onKeyDown($event)">
<form [formGroup]="createForm" (keydown)="onKeyDown($event)" tabindex="-1">
<!-- Prefix -->
<p>
<mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1 mat-dialog-title>
<span *ngIf="!currentComment">{{ 'New comment field' | translate }}</span>
</h1>
<mat-dialog-content class="os-form-card-mobile">
<form [formGroup]="commentFieldForm" (keydown)="onKeyDown($event)">
<form [formGroup]="commentFieldForm" (keydown)="onKeyDown($event)" tabindex="-1">
<p>
<mat-form-field>
<mat-label>{{ 'Name' | translate }}</mat-label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Template for new motion block dialog -->
<h1 mat-dialog-title>{{ 'New motion block' | translate }}</h1>
<form [formGroup]="createBlockForm" (keydown)="onKeyDown($event)">
<form [formGroup]="createBlockForm" (keydown)="onKeyDown($event)" tabindex="-1">
<mat-dialog-content>
<!-- Title -->
<mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<h1 mat-dialog-title>{{ 'Edit details for' | translate }} {{ block.title }}</h1>
<mat-dialog-content class="os-form-card-mobile">
<form class="edit-form" [formGroup]="blockEditForm" (ngSubmit)="saveBlock()" (keydown)="onKeyDown($event)">
<form
class="edit-form"
[formGroup]="blockEditForm"
(ngSubmit)="saveBlock()"
(keydown)="onKeyDown($event)"
tabindex="-1"
>
<mat-form-field>
<mat-label>{{ 'Title' | translate }}</mat-label>
<input matInput osAutofocus formControlName="title" required />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h2>{{ 'New amendment' | translate }}</h2>
class="paragraph-row background-hover"
[class.outlined-hover]="isParagraphSelected(paragraph)"
(click)="onParagraphClicked(paragraph)"
tabindex="-1"
>
<mat-checkbox
*ngIf="multipleParagraphsAllowed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
></os-motion-detail-diff>
</ng-container>

<form class="motion-content" [formGroup]="contentForm" (keydown)="onKeyDown($event)">
<form class="motion-content" [formGroup]="contentForm" (keydown)="onKeyDown($event)" tabindex="-1">
<!-- Selecting statute paragraphs for amendment -->
<div class="statute-amendment-selector" *ngIf="newMotion && statuteParagraphs.length && statutesEnabled">
<mat-checkbox formControlName="statute_amendment" (change)="onStatuteAmendmentChange($event)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1 mat-dialog-title>
<span *ngIf="!currentTag">{{ 'New tag' | translate }}</span>
</h1>
<mat-dialog-content class="os-form-card-mobile">
<form [formGroup]="tagForm" (keydown)="onKeyDown($event)">
<form [formGroup]="tagForm" (keydown)="onKeyDown($event)" tabindex="-1">
<mat-form-field>
<mat-label>{{ 'Name' | translate }}</mat-label>
<input required type="text" matInput formControlName="name" />
Expand Down

0 comments on commit d7d4148

Please sign in to comment.