size.badge: акцентный шрифт и dot-варианты без слоя синонимов - #114
Open
khaliulin wants to merge 1 commit into
Open
size.badge: акцентный шрифт и dot-варианты без слоя синонимов#114khaliulin wants to merge 1 commit into
khaliulin wants to merge 1 commit into
Conversation
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.
Ветка от
main. Второй компонент из группы «слой синонимов + сырыеvar()» послеavatar.Что сделано
Снят блок
:root— семь переменных--p-badge-extend-*, которые тема выпускает сама, и семь чтений их сырымvar(). Значения dot-варианта (цвета severity, размерыlg/xlg, обнуление padding) теперь берутся черезdt()изbadge.extend.*.Бейдж получил акцентный шрифт. Figma
<Badge>(21:1193) набирает значение стилемprimary-font/text-sm/font-normal:fontFamily.heading(TT Fellows),fontSize.100,fontWeight.regular,lineHeight.350. Размер и вес приходят токенамиbadge.root.*, ноfont-familyу Aura для бейджа нет вовсе — до этой ветки бейдж рисовался дефолтным стекомui-sans-serif, system-ui…. Добавленыfont-familyиline-height; тот же пропуск чинили вtag.Stories. У трёх примеров снята подложка
bg-surface-ground, отступp-4сохранён.Проверки
check-component badge— было 8 FAIL (7×G3 сырыеvar, G5 слой синонимов), стало 0 FAIL, 0 WARNcheck-stories-bg badge— подложек нетcheck-dt-refs— мёртвых ссылок вbadge.tsнет--p-scrollbar-widthprettier --checkпо своим файлам чистtokens/components/badge.tsиstories/components/badge/examples/Сверка с Figma (пересчёт базы 14 → 16): высота и
min-width24px,padding8px, радиус 8px,lg28px,xl32px, точка 8px, точкаlg12px, точкаxlg16px, шрифт TT Fellows 12px/18px, цвета severity (#aafbb7фон обычного success,#f47f77точка danger) — совпадают.Вопросы к дизайну
Расхождений значений с макетом не нашёл —
tokens.jsonпо бейджу совпадает с Figma один в один.