Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] aria-pressed 속성 active 대체 및 useButton 훅 삭제 #149

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

hamo-o
Copy link
Member

@hamo-o hamo-o commented Aug 22, 2024

🎉 변경 사항

  • 이전 PR에서 접근성 에러가 나서 살펴보니, aria-pressed 속성이 문제가 되는 것 같아 해당 속성을 삭제했습니다.
  • useButton 훅으로 일일이 pressed 상태관리를 해주었는데, active 의사 클래스를 사용하면 그럴 필요 없이 pressed 상태를 감지할 수 있어 스타일링 기준을 active로 대체했습니다. (스타일링 외에는 사용되지 않음)

🚩 관련 이슈

🙏 여기는 꼭 봐주세요!

Copy link
Contributor

@hamo-o hamo-o changed the base branch from main to fix/as-prop August 22, 2024 19:49
@hamo-o hamo-o marked this pull request as ready for review August 22, 2024 19:58
Copy link
Collaborator

@ghdtjgus76 ghdtjgus76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어요~

@hamo-o hamo-o merged commit a5de638 into fix/as-prop Aug 23, 2024
7 checks passed
@hamo-o hamo-o deleted the fix/button-component-pressed branch August 23, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants