Skip to content

Commit

Permalink
Merge pull request #335 from jensvanhoofdigi/feature/conditonal-labels
Browse files Browse the repository at this point in the history
feat(date/timepicker-model): add conditional field
  • Loading branch information
TriangleJuice authored Mar 21, 2024
2 parents 30a3c60 + 76d2d63 commit f1b18e7
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 f1b18e7

Please sign in to comment.