-
Notifications
You must be signed in to change notification settings - Fork 24
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
(frontend) replace grommet text input with cunningham text input #2374
Conversation
4cbcae2
to
1886e74
Compare
c8547fc
to
6d4f0c0
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.
- the font weight is not the same with master branch.
400
on the master branch,300
on this one.
src/frontend/apps/standalone_site/src/components/Text/PrivateTextInputField.tsx
Outdated
Show resolved
Hide resolved
src/frontend/packages/lib_video/src/components/common/VideoWidgetProvider/index.spec.tsx
Outdated
Show resolved
Hide resolved
...StudentLiveStarter/StudentLiveAdvertising/StudentLiveRegistration/RegistrationForm/index.tsx
Outdated
Show resolved
Hide resolved
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.
The render is not the same at all. Is it normal ? If yes, is it needed to keep it ?
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.
I don't know what is the best to do:
- either let it like that (it will still check some changes)
- Or remove this test
- Or try to add the
lib-common
css to try to get the real render
The last solution is a bit complicated though, in order to have the css interpreted by jest, we need to install jest-transform-css, and couple it with the snapshot libraries.
Let me know if it deserves that we pass time on it.
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.
6d4f0c0
to
3f29815
Compare
Oh and I just notice that the font family used is not the same |
...inputProps | ||
}: PrivateTextInputFieldProps) => { | ||
const intl = useIntl(); | ||
const [isHidden, setIsHidden] = useState(true); |
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.
I find hidden
a bit misleading, what about obscured
?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/password
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.
...lone_site/src/features/Contents/features/ClassRoom/components/Manage/ClassRoomCreateForm.tsx
Show resolved
Hide resolved
You're right, incredible eyes. |
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.
Sorry for being relou
src/frontend/apps/standalone_site/src/components/Text/PrivateTextInputField.tsx
Outdated
Show resolved
Hide resolved
src/frontend/apps/standalone_site/src/components/Text/PrivateTextInputField.tsx
Show resolved
Hide resolved
src/frontend/apps/standalone_site/src/components/Text/PrivateTextInputField.tsx
Outdated
Show resolved
Hide resolved
I added this commit (♻️(frontend) update way to load correct front), before to have a bold Roboto, we had to change the |
dacb41d
to
a4c09d3
Compare
a4c09d3
to
8ebdbb7
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.
...standalone_site/src/features/Profile/features/AccountSettings/components/AccountSettings.tsx
Show resolved
Hide resolved
90d8cee
to
41b53cd
Compare
</Box> | ||
<Select |
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.
On master branch, this select starts at 8AM. We should keep this behaviour
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.
As discussed, I removed the dev about the SchedulingFields (💄(lib_component) replace grommet input by cunningham input).
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.
Double border on the Renater Input fix as well: f1bc86e#diff-3a9a8f08640f71a847e275f989f27e616d3082378d8cf07812c25273384edcaeR375-R377
41b53cd
to
ae0fbba
Compare
The backend can return different body response when an error occurs, to access it we needed to cast the error prop, this commit adds a body prop to have an easy access to the error body.
CunninghamProvider is necessary in multiple cunningham components, so it is easier to maintain a single provider per app.
- replace grommet input by cunningham input - move PrivateTextInputField to root/components/Text - refacto forms to fit new cunningham input text
- replace grommet input by cunningham input - VideoCreateForm is not used anymore so remove it
- replace grommet input by cunningham input
- replace grommet input by cunningham input
- replace grommet input by cunningham input
- replace grommet input by cunningham input
Until now when we wanted to change the font weight with Roboto, we had to change the font-family name, this is not a good practice. Now just by changing the font-weight, the correct font is loaded, if your css use `font-weight:900`, the font will be Roboto Black.
ae0fbba
to
1709ed1
Compare
Purpose
Replace grommet text input with cunningham text input.
It is more critical than we thought I guess, we often need to refactor the code to make it work with the new input:
Form
component is not working with the new inputProposal
TextInput
by cunninghamInput