Skip to content

Commit

Permalink
Fixed styling of file input
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 30, 2018
1 parent 9e48030 commit d02b6b0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ <h3 class="tag tag-primary">
</div>
<div class="form-group">
<label i18n="@@label--service-provider-file" for="fileInput">Select Provider Metadata File</label>
<label class="custom-file d-block">
<div class="custom-file d-block">
<input id="fileInput" type="file" name="file" class="custom-file-input" (change)="fileChange($event)" />
<ng-container>
<label for="fileInput" class="custom-file-label">
<span *ngIf="!providerForm.get('file').value" class="custom-file-control" i18n="@@action--choose-file">Choose File</span>
<span *ngIf="providerForm.get('file').value" class="custom-file-control" i18n="@@action--choose-file">{{ providerForm.get('file').value }}</span>
</ng-container>
</label>
</label>
</div>
</div>
<div class="text-center">
&mdash;
Expand Down

0 comments on commit d02b6b0

Please sign in to comment.