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 href = pageHref(page);
|
||||||
const isCurrent = page === currentPage;
|
const isCurrent = page === currentPage;
|
||||||
return isCurrent ? (
|
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}
|
{page}
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ const BoardsBarEditModal = () => {
|
|||||||
<div className={styles.boardsbarEditDialog}>
|
<div className={styles.boardsbarEditDialog}>
|
||||||
<div className={styles.hd}>
|
<div className={styles.hd}>
|
||||||
<h2>Custom Board List</h2>
|
<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>
|
||||||
<div className={styles.bd}>
|
<div className={styles.bd}>
|
||||||
<BoardsBarEditModalForm
|
<BoardsBarEditModalForm
|
||||||
|
|||||||
Reference in New Issue
Block a user