diff --git a/projects/file-picker/package.json b/projects/file-picker/package.json index 9a672c7..fe76e7e 100644 --- a/projects/file-picker/package.json +++ b/projects/file-picker/package.json @@ -1,6 +1,6 @@ { "name": "ngx-awesome-uploader", - "version": "9.0.0", + "version": "9.0.1", "description": "Angular Library for uploading files with Real-Time Progress bar, File Preview, Drag && Drop and Custom Template with Multi Language support", "peerDependencies": { "@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", diff --git a/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.html b/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.html index 78af977..8a87375 100644 --- a/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.html +++ b/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.html @@ -1,5 +1,4 @@ - -
+
@@ -51,7 +50,5 @@
- - diff --git a/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.scss b/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.scss index f445faa..69eda4b 100644 --- a/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.scss +++ b/projects/file-picker/src/lib/file-preview-container/file-preview-item/file-preview-item.component.scss @@ -5,6 +5,25 @@ max-width: 440px; position: relative; } + +.visually-hidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + + // Avoid browsers rendering the focus ring in some cases. + outline: 0; + + // Avoid some cases where the browser will still render the native controls (see #9049). + -webkit-appearance: none; + -moz-appearance: none; +} + .file-preview-wrapper { display: flex; width: 100%; diff --git a/src/app/demo-file-picker/demo-file-picker.component.html b/src/app/demo-file-picker/demo-file-picker.component.html index 990e0cb..c5f4699 100644 --- a/src/app/demo-file-picker/demo-file-picker.component.html +++ b/src/app/demo-file-picker/demo-file-picker.component.html @@ -16,6 +16,7 @@ [accept]="'image/*'" [captions]="captions" (fileAdded)="onFileAdded($event)" + [itemTemplate]="itemTemplate" >