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

feat(Gallery): add prop arrowClickableArea to arrows #7907

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

EldarMuhamethanov
Copy link
Contributor


  • Unit-тесты
  • e2e-тесты
  • Дизайн-ревью
  • Документация фичи
  • Release notes

Описание

Необходимо реализовать возможность изменения кликабельной зоны стрелок переключения слайдов для компонента Gallery

Изменения

Изначально хотел доработать компонент ScrollArrow и добавить в него свойство arrowClickableArea, чтобы можно было переиспользовать в других компонентах, не только в Gallery. Но понял, что без серьезных изменений в верстке компонента данное изменение сделать не получится, так как в ScrollArrow корневой компонент - button и все свойства завязаны на button. А для реализации arrowClickableArea пришлось бы сделать корневой компонент div. В общем пришлось отказаться от этой идеи и добавить свойство arrowClickableArea только для Gallery. По итогу

  • Добавил свойство arrowClickableArea с двумя значениями 'fill' и 'fit'
  • Добавил необходимые стили для стрелок
  • Вынес компонент ScrollArrows, который рендерит обе стрелки и переиспользовал CarouselBase и BaseGallery

Release notes

Улучшения

  • Gallery: Добавлено свойство arrowClickableArea для изменения кликабельной области стрелок

@EldarMuhamethanov EldarMuhamethanov self-assigned this Nov 7, 2024
@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner November 7, 2024 09:06
@EldarMuhamethanov EldarMuhamethanov removed their assignment Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

size-limit report 📦

Path Size
JS 387.92 KB (+0.13% 🔺)
JS (gzip) 123.95 KB (+0.12% 🔺)
JS (brotli) 102.32 KB (+0.11% 🔺)
JS import Div (tree shaking) 1.47 KB (0%)
CSS 342.9 KB (+0.13% 🔺)
CSS (gzip) 49.44 KB (+0.17% 🔺)
CSS (brotli) 40.07 KB (+0.19% 🔺)

Copy link

codesandbox-ci bot commented Nov 7, 2024

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.

Copy link
Contributor

github-actions bot commented Nov 7, 2024

e2e tests

Playwright Report

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.30%. Comparing base (db7b30c) to head (ad8b51e).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7907   +/-   ##
=======================================
  Coverage   95.30%   95.30%           
=======================================
  Files         378      379    +1     
  Lines       11196    11205    +9     
  Branches     3735     3735           
=======================================
+ Hits        10670    10679    +9     
  Misses        526      526           
Flag Coverage Δ
unittests 95.30% <100.00%> (+<0.01%) ⬆️

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

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

Copy link
Contributor

github-actions bot commented Nov 7, 2024

👀 Docs deployed

Commit ad8b51e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Gallery]: Возможность изменения кликабельной зоны стрелок
1 participant