Skip to content

feat: add align prop to typography#9112

Merged
inomdzhon merged 1 commit intomasterfrom
feat/5560/Typography_add_text_center
Oct 31, 2025
Merged

feat: add align prop to typography#9112
inomdzhon merged 1 commit intomasterfrom
feat/5560/Typography_add_text_center

Conversation

@BlackySoul
Copy link
Copy Markdown
Contributor


  • Unit-тесты
  • Документация фичи
  • Release notes

Описание

Добавлено свойство align в компонент Typography для управления выравниванием текста. Это позволяет централизовать текст в компонентах Title, Headline и других компонентах Typography без необходимости использования дополнительных оберток или кастомных стилей.

Изменения

  • Добавлено свойство align: 'start' | 'center' | 'end' в компонент Typography
  • Обновлен компонент Footer для использования свойства align вместо кастомных стилей text-align
  • Немного исправлены примеры в доке по типографике

Release notes

Улучшения

  • Typography: добавлено свойство align для управления выравниванием текста

@BlackySoul BlackySoul requested a review from a team as a code owner October 28, 2025 16:39
@BlackySoul BlackySoul linked an issue Oct 28, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 29, 2025

size-limit report 📦

Path Size
JS 420.66 KB (+0.04% 🔺)
JS (gzip) 127.84 KB (+0.05% 🔺)
JS (brotli) 104.68 KB (-0.09% 🔽)
JS import Div (tree shaking) 1.67 KB (0%)
CSS 370.19 KB (+0.04% 🔺)
CSS (gzip) 45.8 KB (+0.09% 🔺)
CSS (brotli) 36.27 KB (+0.02% 🔺)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 29, 2025

e2e tests

Playwright Report

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.96%. Comparing base (9101b62) to head (b9f1f40).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9112   +/-   ##
=======================================
  Coverage   95.96%   95.96%           
=======================================
  Files         455      455           
  Lines       26525    26533    +8     
  Branches     4923     4924    +1     
=======================================
+ Hits        25454    25462    +8     
  Misses       1071     1071           
Flag Coverage Δ
unittests 95.96% <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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 29, 2025

📊 Найдены изменения в собранных файлах: Отчет

Commit b9f1f40

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 29, 2025

👀 Docs deployed

📦 Package ✅

yarn add @vkontakte/vkui@https://vkui-screenshot.hb.bizmrg.com/pull/9112/b9f1f40aaed67675e74a691b79cfb6c682ee89de/pkg/@vkontakte/vkui/_pkg.tgz

Commit b9f1f40

Copy link
Copy Markdown
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.

💅 ⬅️⬅️
➡️ 💅⬅️
➡️➡️ 💅

@BlackySoul BlackySoul force-pushed the feat/5560/Typography_add_text_center branch from 5a38a11 to b9f1f40 Compare October 29, 2025 12:07
@inomdzhon inomdzhon merged commit 3d0e16b into master Oct 31, 2025
30 checks passed
@inomdzhon inomdzhon deleted the feat/5560/Typography_add_text_center branch October 31, 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]: Централизация текста

3 participants