Перевод button на новые токены и базу 16px - #97
Open
khaliulin wants to merge 2 commits into
Open
Conversation
This was referenced Aug 21, 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.
Первый компонент по плану переезда на базу 16px. Ветка от
size-update.Что сделано
button.ts: 322 → 176 строк.export default— 150 строк мёртвого дубля, который никто не импортировал (map-tokens.tsберёт именованныйbuttonCss);:rootсо слоем синонимов--p-button-extend-*: PrimeUIX сам выпускает переменную для каждого токена пресета, отбрасывая сегментыroot/extend(button.extend.extLg.height→--p-button-ext-lg-height);var(--p-*)заменены наdt()— три из них были мертвы после смены схемы токенов (--p-opacity-1000,--p-controls-icon-only-850/900);gapуxlg(перекрывался правилом дляlg), фон link-кнопки, фон в фокусе для severity в вариантах outlined и text;Замеры в браузере
Корневой
font-size= 16px, дробных пикселей нет.Гейты
npm run check:component -- button— без FAIL и WARN.npx prettier --check— чисто. Консоль на всех stories — 0 ошибок.Не входит в ветку
Сверка с Figma не проводилась: файл
UI Kit (DS) v2.1не был открыт в Figma Desktop. Все замеры — против токенов, не против макета.