Skip to content

[FEATURE] Tooltip trigger wrapper 스타일 분리 및 button 스타일 제거 #231

@minji0214

Description

@minji0214

개요

Tooltip.css.ts에 정의된 button 스타일이 모든 trigger wrapper에 강제 적용되는 문제를 해결합니다.

배경

현재 Tooltip.tsx:78에서 className={styles.button}이 trigger 요소에 항상 적용됩니다.
asChild=true인 경우에도 자식 요소에 버튼 스타일이 덮어씌워져 스타일 오염이 발생합니다.

// 현재 - 모든 trigger에 버튼 스타일 강제 적용
<Component
  ref={wrapperRef}
  className={styles.button}  
>

Tooltip의 trigger wrapper는 스타일이 없어야 하며(투명), 자식 요소의 스타일을 그대로 유지해야 합니다.

선행 작업

  • Button 컴포넌트 업데이트가 완료되어야 합니다.

작업 범위

  • Tooltip.css.ts에서 button 스타일 제거
  • trigger wrapper의 불필요한 className 제거
  • asChild 동작 검증 테스트 추가

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions