-
Notifications
You must be signed in to change notification settings - Fork 52
add withoutParallelIndent prop and apply Radix to Divider component #873
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
Conversation
🦋 Changeset detectedLatest commit: 486e8ed The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report
@@ Coverage Diff @@
## next-v1 #873 +/- ##
===========================================
+ Coverage 70.87% 71.00% +0.13%
===========================================
Files 204 204
Lines 2884 2894 +10
Branches 797 807 +10
===========================================
+ Hits 2044 2055 +11
+ Misses 722 721 -1
Partials 118 118
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
sungik-choi
left a comment
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.
- 윈도우 포함, 브라우저별로 잘 표시되는 지 확인부탁드려요!
- 사방 마진을 제거하는
withoutIndentprop이 추가되면 사용처에서 더 쉽게 사용할 수 있을 거 같습니다. 아마 대부분withoutSideIndent,withoutIndent둘만 사용하게 될 거 같아요
|
네 추가하는 방향이 맞습니다! 테스트용 윈도우 노트북이 사내에 있으니, 크로마틱 배포된 스토리북으로 접속하셔서 확인하셔도 될거에요 |
|
Browser Compatibility만 체크되면 Approve 하겠습니다! |
최대한 체크해 보았는데 대부분의 브라우저에서 문제 없는 것 같습니다. PR 본문에 체크해두었으니 확인 부탁드립니다! 🙇 |
Chromatic Report🚀 Congratulations! Your build was successful! |
Summary
Divider컴포넌트에withoutParallelIndentprop을 추가합니다.Divider컴포넌트에 Radix를 적용합니다.Details
변경점
Divider가 더 이상HTMLHRElement가 아닌HTMLDivElement입니다.& > hr등과 같이 태그 이름을 지정해 스타일링한 경우가 있다면 마이그레이션이 필요합니다.withoutParallelIndent?: boolean = falseprop을 추가합니다.withoutSideIndent와 네이밍을 최대한 맞췄습니다.withoutIndent?: boolean = falseprop을 추가합니다.decorative: boolean | undefinedprop을 추가합니다.round1을 추가합니다.Radix 도입과 관한 이야기
Root,Track,Range,Thumb를 각각 제공합니다.bezier-react의styled등을 사용합니다.@radix-ui/react-polymorphic을 이용한 Polymorphic component를 extend하여 bezier를 주입합니다.@radix-ui/react-polymorphic는 Deprecated되었으며, 아래 방법이 훨씬 간단하기 때문에 굳이 이렇게까지 할 필요는 없다고 생각했습니다.asChildprop을 이용해 bezier 컴포넌트에 accessibility를 주입합니다.Divider.tsx의 일부입니다.Browser Compatibility
OS / Engine 호환성을 반드시 확인해주세요.
Windows
macOS
References
seperator: https://www.w3.org/TR/wai-aria-1.2/#separator