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(HorizontalScroll): support rtl #5842

Merged
merged 4 commits into from
Oct 3, 2023
Merged

Conversation

SevereCloud
Copy link
Contributor


  • [ ] Unit-тесты (getComputedStyle не работает в юнит тестах)
  • [ ] e2e-тесты
  • [ ] Дизайн-ревью

Описание

Исправляем HorisontalScroll для RTL

Изменения

Добавлен хук useDirection для определения направления текста. Исправлена работа стрелок в rtl

@SevereCloud SevereCloud requested a review from a team as a code owner September 20, 2023 17:40
@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2023

size-limit report 📦

Path Size
JS 323.13 KB (+0.14% 🔺)
JS (gzip) 98.32 KB (+0.16% 🔺)
JS (brotli) 81.38 KB (-0.03% 🔽)
JS import Div (tree shaking) 2.71 KB (0%)
CSS 278.41 KB (0%)
CSS (gzip) 36.1 KB (0%)
CSS (brotli) 28.63 KB (0%)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 20, 2023

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:

Sandbox Source
VKUI TypeScript Configuration
HorizontalScroll RTL Issue #5837

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2023

e2e tests

Playwright Report

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2023

👀 Docs deployed

Commit 07cb92b

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (da9206a) 79.16% compared to head (07cb92b) 79.17%.
Report is 2 commits behind head on master.

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     
Flag Coverage Δ
unittests 79.17% <64.10%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/vkui/src/hooks/useDirection.ts 93.75% <93.75%> (ø)
...c/components/HorizontalScroll/HorizontalScroll.tsx 55.14% <43.47%> (+1.05%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

Отличная работа 👍 !

Есть опасения по поводу использования Math.ceil в rtl режиме.

@SevereCloud SevereCloud added the v5 Автоматизация: PR продублируется в ветку v5 label Sep 22, 2023
@SevereCloud SevereCloud requested a review from mendrew September 27, 2023 12:58
mendrew
mendrew previously approved these changes Sep 27, 2023
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

Прекрасно ✨

@SevereCloud SevereCloud added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Oct 3, 2023
@SevereCloud SevereCloud requested a review from mendrew October 3, 2023 16:04
Copy link
Contributor

@BlackySoul BlackySoul left a comment

Choose a reason for hiding this comment

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

@SevereCloud SevereCloud merged commit b15428d into master Oct 3, 2023
@SevereCloud SevereCloud deleted the SevereCloud/issue5837 branch October 3, 2023 16:59
vkcom-publisher pushed a commit that referenced this pull request Oct 3, 2023
vkcom-publisher pushed a commit that referenced this pull request Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча v5 Автоматизация: PR продублируется в ветку v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Не работают стрелки в HorizontalScroll в RLT
3 participants