-
Notifications
You must be signed in to change notification settings - Fork 1
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
ScrollButton 컴포넌트 퍼블리싱 #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿~~👍
<button | ||
className={styles.scrollButton} | ||
onClick={scrollToTop} | ||
aria-label="최상단으로 올라가기" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존에 없던 레이블이 생겼네요. 웹 접근성 개선 차원에서 작성하신걸로 보입니다. aria-label 대신 aria-description을 사용하는것에 대해서는 어떻게 생각하세요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria와 관련된 속성은 JSX에서 대쉬바로 props를 전달해주어도 문제가없나요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
button에 text가 없으면 eslint 에러가 떠서 aria-label로 작성하였습니다.
aria와 관련된 속성은 jsx에서 kebab case로 사용합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GOOD
Issue Number
close #35
What
스크롤버튼 컴포넌트를 퍼블리싱하고, 기능 구현을 하였습니다.
How
ScreenShot