Skip to content

Commit

Permalink
AB#490 Add select/unselect state for prep and release task toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
rechen committed Jan 30, 2023
1 parent 4e5d0f0 commit 70051f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
<div style="padding: 10px; flex: 1">
<mat-checkbox [formControl]="onlyFailedControl" color="primary">Only failed</mat-checkbox>
</div>
<div class="type-toggle">
<div role="radiogroup" aria-required="true" class="type-toggle">
<bl-clickable class="option" (do)="updateType(HookTaskType.PreparationTask)"
role="radio"
[attr.aria-checked]="type === HookTaskType.PreparationTask"
[attr.aria-selected]="type === HookTaskType.PreparationTask"
[class.active]="type === HookTaskType.PreparationTask">
Preparation tasks
</bl-clickable>
<bl-clickable class="option" (do)="updateType(HookTaskType.ReleaseTask)"
role="radio"
[attr.aria-checked]="type === HookTaskType.ReleaseTask"
[attr.aria-selected]="type === HookTaskType.ReleaseTask"
[class.active]="type === HookTaskType.ReleaseTask"
[attr.aria-disabled]="!hasReleaseTask"
Expand Down

0 comments on commit 70051f2

Please sign in to comment.