Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix remove file buttons accessibility

Chocobozzzce3d17388d07
diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html
index a5ec7da628..06da2f96f5 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.html
+++ b/client/src/app/+admin/overview/videos/video-list.component.html
@@ -112,11 +112,13 @@
<li *ngFor="let file of video.files">
<a target="_blank" rel="noopener noreferrer" [href]="file.fileUrl">{{ file.resolution.label }}</a>: {{ file.size | bytes: 1 }}
- <my-global-icon
- *ngIf="canRemoveOneFile(video)"
- i18n-ngbTooltip ngbTooltip="Delete this file" iconName="delete" role="button"
+ <button
+ *ngIf="canRemoveOneFile(video)" class="border-0 p-0"
+ i18n-title title="Delete this file"
(click)="removeVideoFile(video, file, 'web-videos')"
- ></my-global-icon>
+ >
+ <my-global-icon iconName="delete"></my-global-icon>
+ </button>
</li>
</ul>
</div>
@@ -128,11 +130,13 @@
<li *ngFor="let file of video.streamingPlaylists[0].files">
<a target="_blank" rel="noopener noreferrer" [href]="file.fileUrl">{{ file.resolution.label }}</a>: {{ file.size | bytes: 1 }}
- <my-global-icon
- *ngIf="canRemoveOneFile(video)"
- i18n-ngbTooltip ngbTooltip="Delete this file" iconName="delete" role="button"
+ <button
+ *ngIf="canRemoveOneFile(video)" class="border-0 p-0"
+ i18n-title title="Delete this file"
(click)="removeVideoFile(video, file, 'hls')"
- ></my-global-icon>
+ >
+ <my-global-icon iconName="delete"></my-global-icon>
+ </button>
</li>
</ul>
</div>