-
Notifications
You must be signed in to change notification settings - Fork 20
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
PLASMA-4007: TextField input width with textAfter #1611
Conversation
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1611/ |
Documentation preview deployed! website:https://plasma.sberdevices.ru/pr/pr-1611/ |
2f3bf66
to
9763db4
Compare
9763db4
to
b9e2ba4
Compare
packages/plasma-b2c/src/components/TextField/TextField.component-test.tsx
Outdated
Show resolved
Hide resolved
min-width: ${({ hasDynamicWidth }) => (hasDynamicWidth ? 'auto' : '60%')}; | ||
|
||
${Input} { | ||
field-sizing: ${({ hasDynamicWidth }) => (hasDynamicWidth ? 'content' : 'auto')}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это да, можно в тест отдать, пусть посмотряот
вариант, с export const defaultCharacterWidth = '1ch';
не подходит, для него monospace шрифт нужен
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
печально, все. Игорь посмотрел. 3й вариант остался )
b9e2ba4
to
224b144
Compare
224b144
to
282f046
Compare
282f046
to
b362899
Compare
b362899
to
cae16f6
Compare
Core
TextField
textAfter
, теперь позиция всегда рядом с текстом inputWhat/why changed
input в TextField при textAfter теперь имеет динамическую ширину
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: