aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-20 12:09:54 +0100
committerChocobozzz <me@florianbigard.com>2023-02-20 12:09:54 +0100
commit3ebb2987c2b6338e6f9d49a2723731f2fc77b924 (patch)
tree5558119dce67603a07c04864c7356d5615011bcc /client
parentd681188b7315754035c0ac546090e6900d98c6de (diff)
downloadPeerTube-3ebb2987c2b6338e6f9d49a2723731f2fc77b924.tar.gz
PeerTube-3ebb2987c2b6338e6f9d49a2723731f2fc77b924.tar.zst
PeerTube-3ebb2987c2b6338e6f9d49a2723731f2fc77b924.zip
Fix buttons accessibility using keyboard
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html2
-rw-r--r--client/src/app/shared/shared-main/buttons/action-dropdown.component.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html
index 5eefc2450..91bd8309c 100644
--- a/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html
+++ b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html
@@ -40,7 +40,7 @@
40 <button (click)="onWantToReply()" class="comment-action-reply border-0 p-0" i18n>Reply</button> 40 <button (click)="onWantToReply()" class="comment-action-reply border-0 p-0" i18n>Reply</button>
41 41
42 <my-user-moderation-dropdown 42 <my-user-moderation-dropdown
43 [prependActions]="prependModerationActions" tabindex=0 [buttonStyled]="false" 43 [prependActions]="prependModerationActions" [buttonStyled]="false"
44 buttonSize="small" [account]="commentAccount" [user]="commentUser" i18n-label label="Options" placement="bottom-left auto" 44 buttonSize="small" [account]="commentAccount" [user]="commentUser" i18n-label label="Options" placement="bottom-left auto"
45 ></my-user-moderation-dropdown> 45 ></my-user-moderation-dropdown>
46 </div> 46 </div>
diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html
index 474baafd7..17acb3eab 100644
--- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html
+++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html
@@ -40,7 +40,7 @@
40 40
41 <h6 41 <h6
42 *ngIf="!action.linkBuilder && action.isHeader && areActionsDisplayed(actions, entry)" [ngClass]="{ 'with-icon': !!action.iconName }" 42 *ngIf="!action.linkBuilder && action.isHeader && areActionsDisplayed(actions, entry)" [ngClass]="{ 'with-icon': !!action.iconName }"
43 class="dropdown-header" tabindex="0" role="button" [title]="action.title || ''" (click)="action.handler(entry)" (keyup.enter)="action.handler(entry)" 43 class="dropdown-header" [title]="action.title || ''" (click)="action.handler(entry)" (keyup.enter)="action.handler(entry)"
44 > 44 >
45 <ng-container *ngTemplateOutlet="templateActionLabel; context:{ $implicit: action }"></ng-container> 45 <ng-container *ngTemplateOutlet="templateActionLabel; context:{ $implicit: action }"></ng-container>
46 </h6> 46 </h6>