Skip to content

Commit

Permalink
페이지네이션 자잘한 버그 수정 (#2384)
Browse files Browse the repository at this point in the history
- pressed 상태 버튼에 hover 시 background color 바뀌지 않도록 함
- 현재 페이지 그룹이 1일 때도 마지막 페이지로 이동할 수 있도록 수정
  • Loading branch information
Seohyun-Roh committed Jun 17, 2024
1 parent 9f1ae62 commit 1e8f9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/src/lib/components/Pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
size: '32px',
color: { base: 'gray.600', _focusVisible: 'gray.600', _pressed: 'gray.0' },
fontSize: '14px',
backgroundColor: { base: 'gray.0', _hover: 'gray.100', _focusVisible: 'gray.200', _pressed: 'gray.900' },
backgroundColor: { base: 'gray.0', _hover: 'gray.100', _focusVisible: 'gray.200', _pressed: 'gray.900!' },
transition: 'common',
})}
aria-pressed={currentPage === index}
Expand Down Expand Up @@ -118,7 +118,7 @@
backgroundColor: { base: 'gray.0', _enabled: { _hover: 'gray.100', _pressed: 'gray.200' } },
_disabled: { cursor: 'not-allowed' },
})}
disabled={currentPageGroup === totalPageGroup || currentPage === maxPage}
disabled={currentPage >= maxPage}
type="button"
on:click={() => {
currentPage = maxPage;
Expand Down

0 comments on commit 1e8f9d6

Please sign in to comment.