Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the design system's color palette and enhances the Input component with a remove button and description sub-component. Feedback highlights several issues: a relative import violation, missing accessibility labels and disabled state handling for the remove button, and a hardcoded warning style in the description component. Additionally, the Chip story's argTypes need updating to reflect the new skyblue variant.
| inputDescription, | ||
| removeButtonIcon, | ||
| } from './Input.css'; | ||
| import XIcon from '../icon/XIcon'; |
Contributor
There was a problem hiding this comment.
❌ 위반 사항
- [코드 컨벤션] 상대 경로(
../icon/XIcon)를 사용하여 컴포넌트를 임포트하고 있습니다.
🔧 개선 제안
- 레포지토리 스타일 가이드(131라인)의 '절대경로 import' 규칙에 따라 프로젝트에 설정된 경로 별칭(Alias)을 사용하여 절대 경로로 수정해 주세요.
References
- 모든 import는 절대 경로를 사용해야 합니다. (link)
Comment on lines
+70
to
+72
| <button type="button" className={removeButton} onClick={onRemove}> | ||
| <XIcon size={16} className={removeButtonIcon} /> | ||
| </button> |
Contributor
There was a problem hiding this comment.
❌ 위반 사항
- [접근성] 삭제 버튼(
button)에aria-label이 누락되어 있어 스크린 리더 사용자가 버튼의 용도를 파악할 수 없습니다. - [로직 오류]
Input컴포넌트가disabled상태일 때도 삭제 버튼이 활성화되어 클릭이 가능한 상태입니다.
🔧 개선 제안
- 버튼에
aria-label="삭제"속성을 추가하고,disabled상태를 버튼에도 적용하여 일관된 사용자 경험을 제공해야 합니다.
<button
type="button"
className={removeButton}
onClick={onRemove}
disabled={disabled}
aria-label="삭제"
>
<XIcon size={16} className={removeButtonIcon} />
</button>
References
- 대화형 요소는 스크린 리더 사용자를 위한 적절한 레이블을 가져야 하며, 부모 컴포넌트의 비활성화 상태를 반영해야 합니다.
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.
🛠️ 변경 사항
세부 변경 내용
theme.css.ts— grayscale 색상 토큰(gray10~gray90) 및background_sub디자인 가이드 기준으로 업데이트Chip.stories.ts— 리더/멤버 Chip 색상 변경 및 Storybook 문서 업데이트Input.tsx/Input.css.ts—Input.Description컴파운드 컴포넌트 추가,onRemoveprop으로 삭제 버튼 지원Input.stories.tsx— Input 스토리 추가🔍 관련 이슈
📸 스크린샷 / GIF (선택)
Input.Description은 children으로 넘기는 컴파운드 패턴으로 구성되어 있어 글자 수 카운트 등은 사용처에서 직접 관리🔄 연관 작업