Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plasma-new-hope): TextField redesign #1160

Merged
merged 7 commits into from
Apr 10, 2024

Conversation

TitanKuzmich
Copy link
Contributor

@TitanKuzmich TitanKuzmich commented Apr 3, 2024

TextField

  • проведен рефакторинг и редизайн
  • обновлены тесты и документация
  • добавлен в поставку в sdds-serv

What/why changed

TextField приведен в соответствие с макетами.

Клавиатурная навигация

  • по нажатию Tab фокусируемся на инпуте
  • если enumeratinType=chip после ввода текста, по нажатию Enter, инпут очистится и появится Chip
  • если введен текст в инпуте по нажатию ArrowLeft или ArrowRight каретка передвигается по тексту
  • при достижении левой границы текста или отсутствии текста в инпуте, при нажатии Backspace удаляем последний Chip, если он есть
  • при достижении левой границы текста или отсутствии текста в инпуте, при нажатии ArrowLeft переключаемся на последний Chip, если он есть
  • при фокусе на Chip работает переключение фокуса на другие Chip по нажатию ArrowLeft, ArrowRight; если же Chip крайний правый, при нажатии ArrowRight фокус переходит на инпут
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

Copy link
Contributor

github-actions bot commented Apr 3, 2024

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1160/

Copy link
Contributor

github-actions bot commented Apr 3, 2024

⚡ Component performance testing

Result: 🟢 OK

Copy link
Contributor

github-actions bot commented Apr 4, 2024

⚡ Component performance testing

Result: 🟢 OK

Copy link
Contributor

github-actions bot commented Apr 9, 2024

⚡ Component performance testing

Result: 🟢 OK

Copy link
Contributor

⚡ Component performance testing

Result: 🟢 OK

@TitanKuzmich TitanKuzmich added this pull request to the merge queue Apr 10, 2024
Merged via the queue into dev with commit 54aa25e Apr 10, 2024
28 checks passed
@TitanKuzmich TitanKuzmich deleted the plasma-2696/textfield-redesign branch April 10, 2024 07:27
This was referenced Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants