Skip to content

Commit bc23ded

Browse files
authored
Merge pull request #142 from assureclaims/feature/RMA-fileinput
feature/RMA-fileinput : checkin on behalf of prakash
2 parents 63609c2 + 5519ab2 commit bc23ded

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

projects/dxc-ngx-cdk/src/lib/dxc-file-input/dxc-file-input.component.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@
2727
(dragover)="dragOver($event)"
2828
>
2929
<dxc-button
30-
[label]="buttonLabel"
3130
mode="secondary"
3231
[disabled]="disabled"
3332
[tabIndexValue]="tabIndexValue"
3433
(onClick)="fileInput.click()"
35-
></dxc-button>
34+
>
35+
<dxc-button-icon>
36+
<span class="icon-dxc-wrapper">
37+
<mat-icon class="mat-icon material-icons">
38+
file_upload
39+
</mat-icon>
40+
</span>
41+
</dxc-button-icon>
42+
</dxc-button>
3643
<span *ngIf="mode === 'filedrop' || mode === 'dropzone'" class="dropLabel"
3744
>or drop files</span
3845
>

projects/dxc-ngx-cdk/src/lib/dxc-file-input/dxc-file-input.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { DxcButtonModule } from "../dxc-button/dxc-button.module";
55
import { DxcFileComponent } from './dxc-file/dxc-file.component';
66
import { DxcFileErrorComponent } from './dxc-file-error/dxc-file-error.component';
77
import { FileFormatDirective } from './directives/file-format.directive';
8+
import { MatIconModule } from "@angular/material/icon";
89
@NgModule({
910
declarations: [DxcFileInputComponent, DxcFileComponent, DxcFileErrorComponent, FileFormatDirective],
10-
imports: [CommonModule, DxcButtonModule],
11+
imports: [CommonModule, DxcButtonModule,MatIconModule],
1112
exports: [DxcFileInputComponent],
1213
})
1314
export class DxcFileInputModule { }

projects/dxc-ngx-cdk/src/lib/dxc-file-input/dxc-file/dxc-file.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<img [src]="file.image" *ngIf="hasShowPreviewImage" />
1616
</div>
1717

18-
<div class="infoContainer">
19-
<div class="fileContainer">
18+
<div class="infoContainer w-100 justify-content-center align-items-center">
19+
<div class="fileContainer w-100 justify-content-center align-items-center">
2020
<span class="fileName">{{ file.data.name }}</span>
21-
<div class="fileIcons">
21+
<div class="fileIcons" >
2222
<span *ngIf="hasError" aria-label="Error" class="errorIcon">
2323
<svg
2424
fill="currentColor"
@@ -54,7 +54,7 @@
5454
</span>
5555
</div>
5656
</div>
57-
<div class="errorContainer">
58-
<span *ngIf="hasShowError" class="errorMessage">{{ file.error }}</span>
57+
<div class="errorContainer" *ngIf="hasShowError">
58+
<span class="errorMessage">{{ file.error }}</span>
5959
</div>
6060
</div>

0 commit comments

Comments
 (0)