-
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
feat(Gallery): add handle click to bullet #7213
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. |
e2e tests |
👀 Docs deployed
Commit 29aa64b |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7213 +/- ##
=======================================
Coverage 84.06% 84.07%
=======================================
Files 361 362 +1
Lines 10934 10939 +5
Branches 3598 3598
=======================================
+ Hits 9192 9197 +5
Misses 1742 1742
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.
Здорово.
Немного только смущает размер области по которой можно кликнуть/нажать у Bullets. Как-будто она маловата. И по хорошему её бы тогда увеличить.
bullets={bullets} | ||
slideIndex={slideIndex} | ||
onChange={onChange} | ||
bulletsClassName={bulletsClassName} |
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.
Этот проп я бы просто назвал className
у самого компонента GalleryBullets
.
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.
А ещё надо бы подумать про доступность.
Bullets перестают быть декоративным элементом и становятся интерактивным.
Сейчас это просто получаются кнопки без названия. 🤔
По поводу размеров надо будет пойти к @VKCOM/vkui-design |
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно. |
Описание
Необходимо добавить обработку кликов на
bullets
Изменения
bullet
с переходам к нужному слайдуbulletsClassName
класснейм для контейнера сbullets
slideClassName
классней для слайда в Gallery