Repository navigation
refactor: draw the Memory tab's controls with the parts - #1895
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #1893 (이 PR의 base), #1891
Summary
Memory 탭에서 직접 그리던 버튼 9개를 부품으로 바꿨습니다(raw
<button>216 → 207, 이 PR만).더 보기·지난 기억·비교·되돌리기는
Button text, 데이터 지우기와 토스트의 되돌리기는Button text-link, 카드 행을 펼치는 뒤 버튼은RowOverlayButton입니다.화면은 그대로이고, 전에 포커스 링이 없던 글자 버튼 6개가 이제 키보드 포커스를 보여 줍니다.
왼쪽 이전, 오른쪽 이후(Memory 장면 workspace, dark, 360px).
Review
web/src/MemoryTab.tsx- 카드 행 뒤의 버튼(RowOverlayButton)은 포커스 링을 안쪽으로 그립니다.Evidence
workspace,forgotten,off를 이주 전후 같은 조건에서 캡처해 비교했습니다. 레이아웃 차이는 없습니다(workspace의 6px 차이는 펼친 카드로 스크롤한 위치 차이로, forgotten에서는 같습니다).vitest src/MemoryTab28개 통과,tsc --noEmit,eslint,check-design-contract(기준선 갱신 포함) 통과.practice/PracticeCoach.tsx의 11개. 연습 화면 전용 디자인(pc-*와 practice 색)이라 부품으로 바꾸면 디자인이 바뀝니다.추가 증거
지운 직후의 되돌리기 토스트(
Button text-link).