]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix buttons accessibility using keyboard
authorChocobozzz <me@florianbigard.com>
Mon, 20 Feb 2023 11:09:54 +0000 (12:09 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 20 Feb 2023 11:09:54 +0000 (12:09 +0100)
client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html
client/src/app/shared/shared-main/buttons/action-dropdown.component.html

index 5eefc24506f9d88b2369395bb856c0e8d9316aaa..91bd8309c9c8f83b94d1d6fa6ed638017b565e84 100644 (file)
@@ -40,7 +40,7 @@
           <button (click)="onWantToReply()" class="comment-action-reply border-0 p-0" i18n>Reply</button>
 
           <my-user-moderation-dropdown
-            [prependActions]="prependModerationActions" tabindex=0 [buttonStyled]="false"
+            [prependActions]="prependModerationActions" [buttonStyled]="false"
             buttonSize="small" [account]="commentAccount" [user]="commentUser" i18n-label label="Options" placement="bottom-left auto"
           ></my-user-moderation-dropdown>
         </div>
index 474baafd75b129adc761c7e87aedf2b89d14a4a5..17acb3eaba434b41f59529432761eb9953626037 100644 (file)
@@ -40,7 +40,7 @@
 
           <h6
             *ngIf="!action.linkBuilder && action.isHeader && areActionsDisplayed(actions, entry)" [ngClass]="{ 'with-icon': !!action.iconName }"
-            class="dropdown-header" tabindex="0" role="button" [title]="action.title || ''" (click)="action.handler(entry)" (keyup.enter)="action.handler(entry)"
+            class="dropdown-header" [title]="action.title || ''" (click)="action.handler(entry)" (keyup.enter)="action.handler(entry)"
           >
             <ng-container *ngTemplateOutlet="templateActionLabel; context:{ $implicit: action }"></ng-container>
           </h6>