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(Progress): add custom color prop and trackDisable prop. #8167

Merged
merged 8 commits into from
Jan 27, 2025

Conversation

EldarMuhamethanov
Copy link
Contributor


  • Unit-тесты
  • e2e-тесты
  • Release notes

Изменения

  • Добавил свойство color, которое позволяет установить кастомный цвет для полоски. Работает при appearance="custom"
  • Добавил свойство trackDisable для того, чтобы сделать фон прогрессбара прозрачным
  • Убрал лишнюю ноду из верстки компонента

Release notes

Улучшения

  • Progress:
    • Добавлено свойство color для установки кастомного цвета полоски
    • Добавлено свойство trackDisable для того, чтобы сделать фон прогрессбара прозрачным

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner January 20, 2025 08:49
Copy link

codesandbox-ci bot commented Jan 20, 2025

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 Jan 20, 2025

size-limit report 📦

Path Size
JS 392.53 KB (+0.05% 🔺)
JS (gzip) 119.08 KB (+0.07% 🔺)
JS (brotli) 97.95 KB (+0.11% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 344.36 KB (+0.1% 🔺)
CSS (gzip) 42.68 KB (+0.11% 🔺)
CSS (brotli) 34.02 KB (+0.04% 🔺)

Copy link
Contributor

e2e tests

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit 13f56be

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.50%. Comparing base (d5629e8) to head (c786117).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8167   +/-   ##
=======================================
  Coverage   95.49%   95.50%           
=======================================
  Files         403      403           
  Lines       11456    11468   +12     
  Branches     3781     3787    +6     
=======================================
+ Hits        10940    10952   +12     
  Misses        516      516           
Flag Coverage Δ
unittests 95.50% <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.

# Conflicts:
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-android-chromium-dark-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-android-chromium-light-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-ios-webkit-dark-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-ios-webkit-light-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-chromium-dark-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-chromium-light-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-firefox-dark-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-firefox-light-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-webkit-dark-1-snap.png
#	packages/vkui/src/components/Progress/__image_snapshots__/progress-vkcom-webkit-light-1-snap.png
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

🙏

Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

Нужно обновить Release notes

Warning

Есть опасение, что на <div class={styles.in}> могли завязаться, конечно... надеюсь там ограничиваются только bacground-color и новый apperance поможет быстро пофиксить

Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

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

👍

@EldarMuhamethanov EldarMuhamethanov merged commit f0e139a into master Jan 27, 2025
29 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/6361/progress-color branch January 27, 2025 08:11
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][Progress]: Возможность покраски в любой цвет
3 participants