Skip to content

Commit

Permalink
feat(date/timepicker-model): add conditional field
Browse files Browse the repository at this point in the history
  • Loading branch information
jensvanhoofdigi committed Mar 21, 2024
1 parent 30a3c60 commit 76d2d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div aria-haspopup="grid" auiFlyout class="aui-datepicker a-input has-icon-right">
<label class="a-input__label" for="id">{{ label }}</label>
<small class="a-input__description" id="id"> {{ description }}</small>
<label class="a-input__label" for="id" *ngIf="label">{{ label }}</label>
<small class="a-input__description" id="id" *ngIf="description"> {{ description }}</small>
<div class="a-input__wrapper">
<input
(blur)="handleBlur($event)"
Expand All @@ -15,11 +15,7 @@
type="text"
/>
<ng-container *ngIf="isDisabled">
<aui-icon
name="ai-calendar"
role="button"
tabindex="0"
/>
<aui-icon name="ai-calendar" role="button" tabindex="0" />
</ng-container>
<ng-container *ngIf="!isDisabled">
<aui-icon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="m-timepicker">
<div *ngIf="!shouldUseFallback" [class]="'a-input--' + size" [ngClass]="{ 'has-error': hasError }" class="a-input">
<label class="a-input__label" for="id">{{ label }}</label>
<small class="a-input__description" id="id" [ngClass]="{ 'is-error': hasError }">
<label class="a-input__label" for="id" *ngIf="label">{{ label }}</label>
<small class="a-input__description" id="id" [ngClass]="{ 'is-error': hasError }" *ngIf="description">
<aui-icon *ngIf="hasError" name="ai-alert-triangle"></aui-icon>
{{ description }}</small
>
Expand Down

0 comments on commit 76d2d63

Please sign in to comment.