-
Notifications
You must be signed in to change notification settings - Fork 974
Conversation
ledgerBackupContent: { | ||
// Align the buttons and keys even when the width of the strings is not equal | ||
width: 'max-content', | ||
margin: '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.
Let's not forget to remove what becomes obsolete.
|
||
ledgerBackupContent__copyKey__key__phrase: { | ||
// See syncTab.js |
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.
We could create a common component to avoid style inconsistency, like PassPhraseContainer
.
Codecov Report
@@ Coverage Diff @@
## master #11344 +/- ##
==========================================
- Coverage 52.51% 52.47% -0.04%
==========================================
Files 267 267
Lines 24982 24983 +1
Branches 3997 3997
==========================================
- Hits 13120 13111 -9
- Misses 11862 11872 +10
|
Codecov Report
@@ Coverage Diff @@
## master #11344 +/- ##
==========================================
+ Coverage 52.53% 52.53% +<.01%
==========================================
Files 267 267
Lines 24975 24978 +3
Branches 3996 3996
==========================================
+ Hits 13120 13122 +2
- Misses 11855 11856 +1
|
@@ -18,10 +19,13 @@ class BatWelcomeScreen extends React.Component { | |||
className={css(styles.batScreen)} | |||
> | |||
<AboutPageSectionTitle data-canWrap data-l10n-id='helloBat' /> | |||
<p data-l10n-id='helloBatText1' | |||
<div data-l10n-id='helloBatText1' |
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.
any reason why not paragraph?
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 really. I just thought I have not seen p
many times under app/renderer/components
(we have a lot of div
and span
instead of p
) and standardizing would help us to keep consistency.
If it should be left as p
, I'll revert them and that's no problem for me :-)
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.
ya not sure why but please revert this part, the current way is not semantic
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 but please see comment
also heads-up I just merged #11342 |
Closes #11343 - Remove obsolete styles - Split l10n strings to force `font-weight: strong` - Set `cursor: text` to indicate where you can select the passphrase manually. Since the mouse cursor does not change you often see that the passphrase is not selected. - Set the same styles as `syncTab.js` to avoid possible style inconsistency - Split font shorthand to ensure that the styles could be cascaded properly. See: https://github.com/Khan/aphrodite#object-key-ordering Auditors: @cezaraugusto Test Plan: 1. Open about:preferences#payments 2. Enable Payments 3. Go to the advanced setting 4. Click `Backup your wallet` 5. Make sure that the cursor changes on the passphrase div
@cezaraugusto reverted! would you please check again and merge this one if it looks good to you? |
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.
++ thanks!
@cezaraugusto would you please merge this to 0.19.x and 0.20.x as well? I'm not quite sure how to and feel I would break the branches. thanks! |
I'm doing it now |
Reorganize ledgerBackup.js
Reorganize ledgerBackup.js
thanks! 🙏 |
Fixes #11332
Closes #11343
font-weight: strong
(On Transifex HTML tags may be deleted by contributors, which should not happen)cursor: text
to indicate where you can select the passphrase manually. Since the mouse cursor does not change you often see that the passphrase is not selected, while you though you did.syncTab.js
to avoid possible style inconsistencyAuditors: @cezaraugusto
Test Plan:
Backup your wallet
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests