Repository navigation
Conversation
1. Добавлен недостающий css обёртки .extra-textarea: flex-раскладка, лейбл слева выровнен по верху поля, лейбл 14/14 и подпись 14/14 как в Figma, полная ширина для fluid-полей внутри обёрток. 2. line-height по размерам и паддинги приведены к формовым токенам Figma. 3. Переработан плавающий лейбл: лейбл 14/20 в покое и 12/14 поднятым, текст начинается под поднятым лейблом, placeholder скрыт в покое. 4. Добавлен вход requiredMark — красная «*» перед лейблом. 5. Добавлен вход captionSeverity (base, success, warning, danger, info); подпись рисует общий компонент extra-caption. 6. Поле фокусируется по autofocus после создания view: браузеры игнорируют атрибут autofocus у элементов, добавленных после загрузки страницы. 7. Сторис переработаны: одна сторис — один пресет Figma, один экземпляр, литералы в Source, Controls для всех 23 входов; старые example-компоненты удалены. Заметки для ревьюеров: - BREAKING относительно main: labelPosition принимает default | float | left; булев floatLabel, добавленный в main, удалён. Расходится со строками для полей ввода в docs/naming-rules.md — решение владельца. - API: новые входы requiredMark и captionSeverity (по умолчанию base); иконка info скрыта у плавающего лейбла, как в Figma. - Из main сохранены: required, name, autocomplete, maxLength, ariaLabel, ariaLabelledBy, tabindex, readonly. - Токены: components.textarea получает правила обёртки, лейбла, размеров и плавающего лейбла; в tokens.json добавлены соответствующие значения. - Известное отличие от Figma: float-поле при rows=3 высотой 88, в Figma 80 (80 — это min-height). - Открытый вопрос к дизайну: в Figma у float-поля в фокусе с placeholder лейбл остаётся 14/20, в коде поднимается до 12/14. Оставлено как есть по решению владельца.
khaliulin
force-pushed
the
feature/form-inputtext-figma-sync
branch
from
November 12, 2026 17:42
e042f88 to
958bc5e
Compare
khaliulin
force-pushed
the
feature/form-textarea-figma-sync
branch
from
November 12, 2026 17:42
9896abb to
e240d4c
Compare
added 3 commits
November 14, 2026 03:13
1. Сниппеты Source во всех сторисах Docs приведены к стилю inputtext: только тело компонента, однострочники, без html-комментариев и примеров состояний/размеров (они в Controls). 2. Default: многострочный сниппет с полным набором входов (label, requiredMark, info, caption, placeholder). 3. Readonly и Clearable: булевы атрибуты без скобок (readonly, clearable), как в inputtext. 4. FloatLabel: label="FloatLabel" labelPosition="float" вместо «Комментарий» с requiredMark. Заметки для ревьюеров: - Только parameters.docs.source в сторисах, рендер и args не менялись. - Стиль референса: pr-189 inputtext.stories.ts.
1. Восстановить 7 исходных example-файлов компонента вместо лишнего удаления. 2. Согласовать примеры с актуальными типами и API, сохранив исходные описания. 3. Проверить snippets текущих stories, изменённые Controls и строгую Angular-компиляцию восстановленных примеров. Заметки для ревьюеров: - Область: только примеры и stories textarea; производственные компоненты и токены в этом коммите не меняются. - Stories: сохранён текущий список отдельных примеров; исходные example-файлы доступны рядом с ним. - Проверки: Angular-компиляция восстановленных примеров и обязательные gates snippets и описаний проходят.
1. parameters.controls.expanded = true — панель Controls показывает описание, тип, дефолт и группы категорий. 2. Гейты: controls 23/23, descriptions 26/26, source 8/8.
khaliulin
force-pushed
the
feature/form-textarea-figma-sync
branch
from
November 18, 2026 12:43
688f668 to
13cd36b
Compare
Включает глобальный controls.expanded в .storybook/preview.ts (иначе на ветке панель Controls остаётся компактной до мержа инфраструктурной ветки).
khaliulin
force-pushed
the
feature/form-inputtext-figma-sync
branch
from
November 18, 2026 12:44
8ea3b49 to
07a6e8e
Compare
khaliulin
force-pushed
the
feature/form-textarea-figma-sync
branch
from
November 18, 2026 12:44
13cd36b to
942cc59
Compare
This branch has not been deployed
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.
Summary
Syncs Textarea styles and API with Figma UI Kit DS v2.1 and reuses the shared caption component.
Changes
.extra-textareawrapper css: flex layout, label on the left aligned to the top of the field, label 14/14 and caption 14/14 as in Figma, full width for fluid fields inside the wrappers.requiredMarkandcaptionSeverity.autofocusafter the view is created, because browsers ignore the attribute on elements added after page load.Restore all 7 original example component files. Apply only the typing/API compatibility changes needed to compile them against the current component. Keep existing descriptions verbatim and keep the current single-instance story list.
Keep Show code limited to the displayed instance and update it when Controls change. Restore existing story and Control descriptions verbatim from main.
API changes
labelPositionis'default' | 'float' | 'left'; the booleanfloatLabeladded in main is removed. This differs from the form field rows ofdocs/naming-rules.md.requiredMark: boolean, defaultfalse; visual only.captionSeverity:'base' | 'success' | 'warning' | 'danger' | 'info', defaultbase.required,name,autocomplete,maxLength,ariaLabel,ariaLabelledBy,tabindex,readonly.Technical notes for reviewers
components.textareagets the wrapper, label, size and float label rules;tokens.jsongets the matching values.ExtraCaptionComponentfrom the caption PR.Visual changes
Verification
Gates:
check-component,check-stories-bg,check-stories-controls(23 inputs),check-stories-single(8 stories, clean console): pass.Storybook: label positions,
required,name,autocomplete,maxLength,aria-label,tabindex,readonly, auto resize,captionSeverity: checked through Playwright, no console errors.Not verified: dark theme of every state, autofill.
PASS (example restoration): targeted strict Angular template compilation of all 7 restored examples; check-stories-bg; check-stories-source for the full current story list and changed Controls; check-stories-descriptions against origin/main; check-stories-single and check-stories-controls.
The restored standalone files remain available as source examples; restoring them does not add combinatorial stories to the current Storybook index.
Known issues and open questions
rows=3is 88px high where Figma has 80px (80 is the min-height).Stack
Base:
feature/form-inputtext-figma-sync(#189), which is based onfeature/form-caption-figma-sync(#193).