ActivityPub-federated video streaming platform using P2P directly in your web browser
Improve hotkeys popup accessibility
Chocobozzz0ac3820f4d19
diff --git a/client/src/app/core/hotkeys/hotkeys.component.html b/client/src/app/core/hotkeys/hotkeys.component.htmlindex b7a6b376b2..5dd0e47583 100644--- a/client/src/app/core/hotkeys/hotkeys.component.html+++ b/client/src/app/core/hotkeys/hotkeys.component.html@@ -1,18 +1,17 @@<div class="cfp-hotkeys-container fade" [ngClass]="{'in': helpVisible}"><div class="cfp-hotkeys"><h4 class="cfp-hotkeys-title">{{ title }}</h4>- <div class="cfp-hotkeys-table">- <table>- <tbody>- <tr *ngFor="let hotkey of hotkeys">- <td class="cfp-hotkeys-keys">- <span *ngFor="let key of hotkey.formatted" class="cfp-hotkeys-key">{{ key }}</span>- </td>- <td class="cfp-hotkeys-text">{{ hotkey.description }}</td>- </tr>- </tbody>- </table>- </div>++ <ul role="presentation">+ <li *ngFor="let hotkey of hotkeys">+ <div class="cfp-hotkeys-keys">+ <span *ngFor="let key of hotkey.formatted">{{ key }}</span>+ </div>++ <div class="cfp-hotkeys-text">{{ hotkey.description }}</div>+ </li>+ </ul>+<button class="button-unstyle cfp-hotkeys-close" (click)="toggleCheatSheet()">×</button></div></div>diff --git a/client/src/app/core/hotkeys/hotkeys.component.scss b/client/src/app/core/hotkeys/hotkeys.component.scssindex 5eb38f98fc..8f3c543c27 100644--- a/client/src/app/core/hotkeys/hotkeys.component.scss+++ b/client/src/app/core/hotkeys/hotkeys.component.scss@@ -39,37 +39,40 @@max-height: 100%;}-.cfp-hotkeys table {+.cfp-hotkeys ul {margin: auto;+ width: fit-content;+ list-style: none;color: pvar(--mainForegroundColor);}-.cfp-content {- display: table-cell;- vertical-align: middle;+.cfp-hotkeys-keys,+.cfp-hotkeys-text {+ display: inline-block;}.cfp-hotkeys-keys {padding: 5px;- text-align: end;-}+ min-width: 90px;-.cfp-hotkeys-key {- @include margin-right(5px);+ > span {+ @include margin-right(5px);- display: inline-block;- color: pvar(--mainBackgroundColor);- background-color: pvar(--mainForegroundColor);- border: 1px solid pvar(--mainForegroundColor);- border-radius: 5px;- text-align: center;- box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;- padding: 5px 9px;- font-size: 1em;+ display: inline-block;+ color: pvar(--mainBackgroundColor);+ background-color: pvar(--mainForegroundColor);+ border: 1px solid pvar(--mainForegroundColor);+ border-radius: 5px;+ text-align: center;+ box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;+ padding: 5px 9px;+ font-size: 1em;+ }}.cfp-hotkeys-text {@include padding-left(10px);+font-size: 1em;}@@ -85,11 +88,11 @@min-height: 45px;min-width: 45px;text-align: center;-}-.cfp-hotkeys-close:hover {- cursor: pointer;- opacity: 0.8;+ &:hover {+ cursor: pointer;+ opacity: 0.8;+ }}@media all and (max-width: $mobile-view) {