diff --git a/src/core/components/download-refresh/core-download-refresh.html b/src/core/components/download-refresh/core-download-refresh.html index b199a90f0..9c984e977 100644 --- a/src/core/components/download-refresh/core-download-refresh.html +++ b/src/core/components/download-refresh/core-download-refresh.html @@ -1,14 +1,14 @@ + [@coreShowHideAnimation] [attr.aria-label]="(statusTranslatable || 'core.download') | translate" [size]="size"> + [attr.aria-label]="(statusTranslatable || 'core.refresh') | translate" [size]="size"> diff --git a/src/core/components/download-refresh/download-refresh.ts b/src/core/components/download-refresh/download-refresh.ts index 3aed6b4c6..e0ca3cea4 100644 --- a/src/core/components/download-refresh/download-refresh.ts +++ b/src/core/components/download-refresh/download-refresh.ts @@ -34,6 +34,7 @@ export class CoreDownloadRefreshComponent { @Input() statusTranslatable?: string; // Download status translatable string. @Input() enabled = false; // Whether the download is enabled. @Input() loading = true; // Force loading status when is not downloading. + @Input() size: 'small' | 'default' | 'large' = 'default'; // Size of the buttons. @Input() canTrustDownload = false; // If false, refresh will be shown if downloaded. @Output() action: EventEmitter; // Will emit an event when the item clicked. diff --git a/src/core/components/file/core-file.html b/src/core/components/file/core-file.html index d3e199421..7bfac250f 100644 --- a/src/core/components/file/core-file.html +++ b/src/core/components/file/core-file.html @@ -9,11 +9,11 @@
+ [canTrustDownload]="!alwaysDownload" (action)="download()" size="small"> + [attr.aria-label]="'core.delete' | translate" color="danger" size="small">
diff --git a/src/core/features/course/components/format/core-course-format.html b/src/core/features/course/components/format/core-course-format.html index 6aa6ce2f8..785725e7b 100644 --- a/src/core/features/course/components/format/core-course-format.html +++ b/src/core/features/course/components/format/core-course-format.html @@ -167,7 +167,7 @@ + [loading]="section.isDownloading || section.isCalculating" [canTrustDownload]="section.canCheckUpdates" size="small"> diff --git a/src/core/features/course/components/module/core-course-module.html b/src/core/features/course/components/module/core-course-module.html index c8b4fb3c7..b43f2eeec 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -61,11 +61,11 @@
+ (action)="download($event)" size="small"> -