-
Notifications
You must be signed in to change notification settings - Fork 975
Refactor loginRequired.js with Aphrodite and commonForm #8011
Refactor loginRequired.js with Aphrodite and commonForm #8011
Conversation
- textbox and textbox__outlineable were copied from textbox.js to commonStyles.js Since FormTextbox cannot be used for the input elements, I copied the styles applied for that element and applied to them. See: #7164 (comment) The labels and input forms were grouped and placed with display:flex and justify-content:space-between. Also the elements inside each wrapper were aligned equally to make the length of the input forms always equal (l10n friendly). Also colons in the label were removed to make the style consistent. Closes #8009 Addresses #8010 Auditors: Test Plan: 1. Visit http://browserspy.dk/password.php 2. Click "password-ok.php" link 3. Make sure you can log in successfully with the given credential 4. Change the lang setting on about:preferences 5. Try the same steps above and make sure the length of the input forms is equal
Also: - Replaced aphrodite with aphrodite/no-important on textbox.js - Moved the styles from loginRequired.js to commonForm.js Auditors: Test Plan: n/a
@NejcZdovc would you mind reviewing the PR when you have some time? There are several PRs dependent on this one. As I will push the PR once again to the master once everything which should include |
@luixxiul sure, will review it in couple of hours |
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
<Button l10nId='ok' className='primaryButton' onClick={this.onSave.bind(this)} /> | ||
{ | ||
!this.isFolder | ||
? <div id='loginInput' className={css( |
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.
Do we need this ID?
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.
Not quite sure. We could remove them later if we would.
This looks great! Awesome job, @luixxiul! すごい!!! 😄 |
@bsclifton Arigato!! |
Note: this change is not yet available on master. I will push a PR to the master once every change which |
Refactor loginRequired.js with Aphrodite and commonForm
Since FormTextbox cannot be used for the input elements (because the prop
ref={}
cannot be got), I copied the styles applied for that element and applied to them. See: #7164 (comment)The labels and input forms were grouped and placed with display:flex and justify-content:space-between. Also the elements inside each wrapper were aligned equally to make the length of the input forms always equal (l10n friendly).
Also colons in the label were removed to make the style consistent.
Closes #8009
Addresses #8010
Auditors:
Test Plan:
git rebase -i
to squash commits (if needed).