Skip to content

Commit

Permalink
Refactor ngClass expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed Jun 11, 2024
1 parent 94df80d commit 3bf7a6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
<div class="tce-flex tce-gap-4 tce-flex-row-reverse">
<button
class="tce-button-calculate tce-px-3 tce-py-2"
[ngClass]="!estimatorForm.valid ? 'tce-opacity-50 tce-cursor-not-allowed' : ''"
[ngClass]="{ 'tce-opacity-50 tce-cursor-not-allowed': !estimatorForm.valid }"
type="submit"
[attr.aria-disabled]="!estimatorForm.valid">
Calculate
Expand Down

0 comments on commit 3bf7a6a

Please sign in to comment.