-
Notifications
You must be signed in to change notification settings - Fork 0
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(TextInput): ajout adornment (DS-1140) #949
Conversation
b7bda62
to
3ac6bda
Compare
Storybook for this build: https://ds.equisoft.io/pr-949/ |
Webapp for this build: https://ds.equisoft.io/pr-949/webapp/ |
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.
quelques petites modifications ici et là.
@@ -100,15 +123,19 @@ exports[`CurrencyInput Component matches snapshot (en-CA) 1`] = ` | |||
class="c1" | |||
data-testid="field-container" | |||
> | |||
<input | |||
<div |
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.
Je sais pas si c'est voulu, mais cette div là dans le MoneyInput affecte la longueur du champ. C'est peut-être mieux de même pour pouvoir ajuster plus facilement la longueur du champ par contre.
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.
Je ne crois pas que sa soit voulu 😅
Mais bien heureux de l'avoir améliorer en quelque sorte 👌
packages/react/src/themes/tokens/component/text-input-tokens.ts
Outdated
Show resolved
Hide resolved
@@ -11,25 +11,31 @@ import * as TextInputStories from './text-input.stories'; | |||
4. [Properties](#properties) | |||
|
|||
## Definition | |||
Text input allows users to enter a single line of text into a form. |
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.
J'ai l'impression que ton .editorconfig
est pas bon. Les trailing whitespaces devraient pas être enlevées par ton éditeur.
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.
Pourtant en vérifiant trim_trailing_whitespace
est à false. 🤔
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.
Pourquoi on override ça pour les mdx? Quels sont les cas légitimes pour laisser des trailing whitespaces?
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.
En markdown normalement 2 espaces = 1 saut de ligne. Alors si tu veux un vrai saut de ligne, ça arrive que la ligne finisse par
Ma première ligne.<espace>
Ma deuxième ligne.
Par contre je sais plus comment c'est interprété par storybook pour le MDX. Par le passé c'était nécessaire pour garder le saut de ligne il me semble.
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.
Petit commentaire en ce qui me concerne, pour le reste, je laisse Max, P-Y et Savut faire le tour.
04ab3e4
to
7d15c57
Compare
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.
LGTM
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.
Ça semble good pour moi. Je fais confiance aux autres pour le reste.
Good job!
2a69c54
7d15c57
to
2a69c54
Compare
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.
Good pour moi!
JIRA: https://equisoft.atlassian.net/browse/DS-1140
Description des changements
L'adornement peut être un
Icon
ou dutext
.TextInput
.TextInput
estfocus
.