feat(Box): add system paddings#9388
Merged
EldarMuhamethanov merged 5 commits intomasterfrom Feb 12, 2026
Merged
Conversation
Contributor
size-limit report 📦
|
Contributor
e2e tests |
Contributor
Contributor
👀 Docs deployed
📦 Package ✅yarn add @vkontakte/vkui@https://development.s3.prodcloud.vk.team/pull/9388/ac77592b6258e8dcd855aaed31c0054f6086a2e3/pkg/@vkontakte/vkui/_pkg.tgzCommit ac77592 |
SevereCloud
previously approved these changes
Jan 22, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9388 +/- ##
=======================================
Coverage 94.73% 94.73%
=======================================
Files 440 440
Lines 11898 11900 +2
Branches 4386 4386
=======================================
+ Hits 11271 11273 +2
Misses 627 627
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SevereCloud
approved these changes
Feb 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
paddingзначениемsystem#9254Описание
Добавлена поддержка специального значения
'system'для всех padding-свойств в компонентах раскладки (Box, Flex, SimpleGrid и др.). Это значение автоматически устанавливает системные отступы VKUI, которые зависят от платформы (--vkui--size_base_padding_vertical--regularи--vkui--size_base_padding_horizontal--regular).Данное изменение упрощает миграцию с устаревшего компонента
DivнаBox, так как теперь не нужно вручную указывать CSS-переменные для системных отступов.Release notes
Улучшения
padding, включая его производные, теперь поддерживает значение'system', которое применяет платформенные отступы из@vkontakte/vkui-tokens– это упростит миграцию с устаревшего компонентаDivнаBox.padding, включая его производные, теперь поддерживает значение'system', которое применяет платформенные отступы из@vkontakte/vkui-tokenspadding, включая его производные, теперь поддерживает значение'system', которое применяет платформенные отступы из@vkontakte/vkui-tokens