mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(a11y): add translated aria-label for pagination, aria-label for close button
This commit is contained in:
@@ -87,7 +87,7 @@ const BoardPagination = ({ basePath, currentPage, totalPages, footerStyle = fals
|
||||
const href = pageHref(page);
|
||||
const isCurrent = page === currentPage;
|
||||
return isCurrent ? (
|
||||
<span key={page} className={`${styles.paginationButton} ${styles.pageButtonActive}`} aria-label={`Page ${page} (current)`} aria-current='page'>
|
||||
<span key={page} className={`${styles.paginationButton} ${styles.pageButtonActive}`} aria-label={t('pagination.pageCurrent', { page })} aria-current='page'>
|
||||
{page}
|
||||
</span>
|
||||
) : (
|
||||
|
||||
@@ -117,7 +117,7 @@ const BoardsBarEditModal = () => {
|
||||
<div className={styles.boardsbarEditDialog}>
|
||||
<div className={styles.hd}>
|
||||
<h2>Custom Board List</h2>
|
||||
<button className={styles.closeButton} onClick={closeBoardsBarEditModal} title='Close' />
|
||||
<button type='button' className={styles.closeButton} onClick={closeBoardsBarEditModal} title='Close' aria-label='Close' />
|
||||
</div>
|
||||
<div className={styles.bd}>
|
||||
<BoardsBarEditModalForm
|
||||
|
||||
Reference in New Issue
Block a user