Skip to content

PrezelButton 컴포넌트 구조 재설계 #80

@moondev03

Description

@moondev03

📌 작업 사항

현재 PrezelButton 컴포넌트는 초기 구현 이후 기능이 확장되면서 다음과 같은 구조적 문제가 발생하고 있습니다.
• Button 내부 로직과 스타일 로직이 강하게 결합되어 있음
• 버튼 타입(Filled, Outlined, Ghost 등)과 계층(Primary, Secondary)이 혼합되어 관리되고 있음
• 디자인 토큰(색상, border, background, text color 등)이 버튼 내부에 분산되어 있음
• 상태(enabled, disabled)에 따른 스타일 관리가 명확하게 분리되어 있지 않음
• 프리뷰 및 확장성 측면에서 새로운 Button 스타일 추가가 어려움

이로 인해 다음과 같은 문제가 발생합니다.
• 새로운 버튼 스타일 추가 시 코드 수정 범위 증가
• 디자인 시스템 확장 시 유지보수 비용 증가
• 버튼 스타일 정책을 한 곳에서 관리하기 어려움

따라서 디자인 시스템 관점에서 PrezelButton 구조를 재설계하려고 합니다.

💡 기타

참고 자료

https://montage.wanted.co.kr/docs/components/actions/button/android

Metadata

Metadata

Assignees

Labels

🔨 refactor기능 변경 없이 내부 구조, 설계, 가독성 개선

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions