-
Notifications
You must be signed in to change notification settings - Fork 186
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(HorizontalScroll): support rtl #5842
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 07cb92b:
|
e2e tests |
👀 Docs deployed
Commit 07cb92b |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5842 +/- ##
==========================================
+ Coverage 79.16% 79.17% +0.01%
==========================================
Files 303 304 +1
Lines 9482 9507 +25
Branches 3208 3216 +8
==========================================
+ Hits 7506 7527 +21
- Misses 1976 1980 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Отличная работа 👍 !
Есть опасения по поводу использования Math.ceil
в rtl режиме.
packages/vkui/src/components/HorizontalScroll/HorizontalScroll.tsx
Outdated
Show resolved
Hide resolved
packages/vkui/src/components/HorizontalScroll/HorizontalScroll.tsx
Outdated
Show resolved
Hide resolved
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.
Прекрасно ✨
f8a6f63
to
670d042
Compare
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.
✨
[ ] Unit-тесты(getComputedStyle не работает в юнит тестах)[ ] e2e-тесты[ ] Дизайн-ревьюОписание
Исправляем HorisontalScroll для RTL
Изменения
Добавлен хук
useDirection
для определения направления текста. Исправлена работа стрелок в rtl