Fix buttons accessibility using keyboard

pull/5616/head
Chocobozzz 2023-02-20 12:09:54 +01:00
parent d681188b73
commit 3ebb2987c2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View 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>

View 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>