ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix broadcast dismiss icon accessibility
Chocobozzzc5397bd06663
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.htmlindex 8ef22392d6..ad7ca0129a 100644--- a/client/src/app/app.component.html+++ b/client/src/app/app.component.html@@ -31,10 +31,10 @@<div *ngIf="broadcastMessage" class="broadcast-message alert" [ngClass]="broadcastMessage.class"><div [innerHTML]="broadcastMessage.message"></div>- <my-global-icon- *ngIf="broadcastMessage.dismissable" (click)="hideBroadcastMessage()"- iconName="cross" role="button" title="Close this message" i18n-title- ></my-global-icon>+ <button+ *ngIf="broadcastMessage.dismissable" (click)="hideBroadcastMessage()" class="border-0" title="Close this message" i18n-title>+ <my-global-icon iconName="cross"></my-global-icon>+ </button></div><router-outlet></router-outlet>diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scssindex 229a99a2df..3ce9edede9 100644--- a/client/src/app/app.component.scss+++ b/client/src/app/app.component.scss@@ -97,10 +97,14 @@grid-template-columns: 1fr 30px;column-gap: 10px;- my-global-icon {- justify-self: center;- align-self: center;- cursor: pointer;- width: 20px;+ button {+ display: block;+ color: inherit;+ height: fit-content;+ margin: auto;++ > my-global-icon {+ width: 20px;+ }}}diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.htmlindex d4b2b33308..3f91b19246 100644--- a/client/src/app/menu/menu.component.html+++ b/client/src/app/menu/menu.component.html@@ -140,7 +140,7 @@<div><a i18n routerLink="/about/instance">Contact</a><a i18n href="https://joinpeertube.org/help" i18n-title title="Get help using PeerTube" target="_blank" rel="noopener noreferrer">Help</a>- <a i18n href="https://joinpeertube.org/faq" i18n-title title="Frequently asked questions about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a>+ <a i18n href="https://joinpeertube.org/faq" i18n-title title="FAQ (Frequently Asked Questions) - about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a><a i18n routerLink="/about/instance" fragment="statistics">Stats</a><a i18n href="https://docs.joinpeertube.org/api-rest-reference.html" i18n-title title="API documentation" target="_blank" rel="noopener noreferrer">API</a><button (click)="openHotkeysCheatSheet()" class="button-unstyle" i18n>Keyboard shortcuts</button>