mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
fix: resolve a11y
warnings in Admin Frontend (#4184)
This commit is contained in:
@@ -59,7 +59,12 @@ export default class PermissionGrid<CustomAttrs extends IPermissionGridAttrs = I
|
||||
<th>
|
||||
{scope.label}{' '}
|
||||
{!!scope.onremove && (
|
||||
<Button icon="fas fa-times" className="Button Button--text PermissionGrid-removeScope" onclick={scope.onremove} />
|
||||
<Button
|
||||
icon="fas fa-times"
|
||||
className="Button Button--text PermissionGrid-removeScope"
|
||||
aria-label={app.translator.trans('core.admin.permissions.remove_scope_label', { scope: scope.label })}
|
||||
onclick={scope.onremove}
|
||||
/>
|
||||
)}
|
||||
</th>
|
||||
))}
|
||||
|
@@ -23,6 +23,7 @@ export default class Pagination<CustomAttrs extends IPaginationInterface = IPagi
|
||||
<Button
|
||||
disabled={currentPage === 1}
|
||||
title={app.translator.trans('core.lib.pagination.first_button')}
|
||||
aria-label={app.translator.trans('core.lib.pagination.first_button')}
|
||||
onclick={() => onChange(1)}
|
||||
icon="fas fa-step-backward"
|
||||
className="Button Button--icon Pagination-first"
|
||||
@@ -30,6 +31,7 @@ export default class Pagination<CustomAttrs extends IPaginationInterface = IPagi
|
||||
<Button
|
||||
disabled={currentPage === 1}
|
||||
title={app.translator.trans('core.lib.pagination.back_button')}
|
||||
aria-label={app.translator.trans('core.lib.pagination.back_button')}
|
||||
onclick={() => onChange(currentPage - 1)}
|
||||
icon="fas fa-chevron-left"
|
||||
className="Button Button--icon Pagination-back"
|
||||
@@ -77,6 +79,7 @@ export default class Pagination<CustomAttrs extends IPaginationInterface = IPagi
|
||||
<Button
|
||||
disabled={!moreData}
|
||||
title={app.translator.trans('core.lib.pagination.next_button')}
|
||||
aria-label={app.translator.trans('core.lib.pagination.next_button')}
|
||||
onclick={() => onChange(currentPage + 1)}
|
||||
icon="fas fa-chevron-right"
|
||||
className="Button Button--icon Pagination-next"
|
||||
@@ -84,6 +87,7 @@ export default class Pagination<CustomAttrs extends IPaginationInterface = IPagi
|
||||
<Button
|
||||
disabled={!moreData}
|
||||
title={app.translator.trans('core.lib.pagination.last_button')}
|
||||
aria-label={app.translator.trans('core.lib.pagination.last_button')}
|
||||
onclick={() => onChange(totalPageCount)}
|
||||
icon="fas fa-step-forward"
|
||||
className="Button Button--icon Pagination-last"
|
||||
|
@@ -310,6 +310,7 @@ core:
|
||||
participate_heading: Participate
|
||||
post_without_throttle_label: Reply multiple times without waiting
|
||||
read_heading: Read
|
||||
remove_scope_label: Remove scope of {scope}
|
||||
rename_discussions_label: Rename discussions
|
||||
reply_to_discussions_label: Reply to discussions
|
||||
search_users_label: => core.ref.search_users
|
||||
|
Reference in New Issue
Block a user