-
Notifications
You must be signed in to change notification settings - Fork 971
Conversation
Currently: With this PR: |
<Button l10nId='paymentHistoryOKText' | ||
className={css(commonStyles.primaryButton)} | ||
className='primaryButton' |
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.
Why did you change this back to regular class?
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 I wrote in the commit message:
- Reverted commonStyles.primaryButton to primaryButton temporarily
There have been already browserButton and primaryButton available with commonStyles.js, still these styles are overwritten by ones which button.less defines. We have to work on refactoring button.less at first.
It is because aphrodite
was changed to aphrodite/no-important
. I left the reasoning in the commit message on this change too.
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, I didn't read you comment in the commit. Make sense, so let's create an issue for this and track all things that need's to be done there.
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.
+1!!
const globalStyles = require('../styles/global') | ||
<<<<<<< HEAD |
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 think we don't want it ;)
const {paymentStyles} = require('../styles/payment') | ||
const settingIcon = require('../../../extensions/brave/img/ledger/icon_settings.svg') | ||
======= |
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.
(2)
======= | ||
const {paymentStyles, paymentStylesVariables} = require('../styles/payment') | ||
const advanceIcon = require('../../../extensions/brave/img/ledger/icon_settings.svg') | ||
>>>>>>> Refactor payment/history.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.
(3)
@@ -364,6 +385,21 @@ const styles = StyleSheet.create({ | |||
':hover': { | |||
backgroundColor: globalStyles.color.chromeTertiary | |||
} | |||
<<<<<<< HEAD |
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.
:)
@@ -160,8 +166,12 @@ class PaymentsTab extends ImmutableComponent { | |||
/> | |||
: null | |||
} | |||
<<<<<<< HEAD |
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.
same
@@ -276,12 +286,23 @@ const styles = StyleSheet.create({ | |||
switchWrap: { | |||
width: paymentStyles.width.tableCell | |||
}, | |||
<<<<<<< HEAD |
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.
(._.)
switchWrap__switchControl: { | ||
// TODO: Refactor switchControls.less | ||
paddingTop: '0 !important', | ||
paddingBottom: '0 !important' | ||
}, | ||
switchWrap__switchSpan: { | ||
======= |
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.
( .-. )
}, | ||
|
||
switchSpan: { | ||
>>>>>>> Refactor payment/history.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.
(._.)
color: `${globalStyles.color.braveMediumOrange} !important`, | ||
padding: `25px 0 25px ${paymentStylesVariables.spacing.paymentHistoryTablePadding} !important`, | ||
textIndent: '0 !important' | ||
>>>>>>> Refactor payment/history.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.
(。◕‿‿◕。)
|
||
<div className={css(styles.flexAlignEnd)}> | ||
======= | ||
<div className={css(styles.titleBar)}> | ||
>>>>>>> Refactor payment/history.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.
(。◕‿◕。)
height: columnHeight, | ||
alignItems: 'center', | ||
cursor: 'default', | ||
WebkitUserSelect: 'none' |
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 use basic user select and not a webkit
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.
pinging @bradleyrichter for design review :-) |
See: cropped picture of the 6th commit on #6047 (comment) Closes #8037 - Changed aphrodite to aphrodite/no-important (to speed up removing the LESS files) Aphrodite without no-important overwrites the existing code, which should have been removed from the LESS files at the same time. It will make it difficult to know which styles should be kept and removed, having confidence in that changes would not cause regressions. It might be slowing down the refactoring work. - Modified modalOverlay.js by adding customHeaderClassesStr The intent of the change is to make it possible to apply custom styles to the sectionTitle. In this case, braveMediumOrange to the title. - Introduced paymentStylesVariables and paymentHistoryTablePadding - Appied it to leftRow and paymentHistoryOverlay__title It aligns the padding-left of the sectionTitle and the most left row. - Set position:sticky to the table header It always display the table header. Sticky has been available on chromium since a couple of versions. - Set columnHeight and columnPadding - Reverted commonStyles.primaryButton to primaryButton temporarily There have been already browserButton and primaryButton available with commonStyles.js, still these styles are overwritten by ones which button.less defines. We have to work on refactoring button.less at first. Also: - Removed medium - Removed pull-left, which is no longer used Auditors: Test Plan: 1. Run npm run add-simulated-payment-history 2. Open about:preferences#payments 3. The modal dialog looks like the cropped picture of the 6th commit on #6047 (comment)
Addresses #8054 - Renamed customTitleClasses to customDialogClasses - Renamed customHeaderClasses to customTitleClasses customeDialogClasses |-- customTitleClasses Auditors: Test Plan: 1. Open about:preferences#payments 2. Enable payments 3. Click "Add funds" 4. Make sure the style of modal overlay dialog is not broken 5. Click "Display QR" 6. Make sure the QR overlay is displayed 7. Close those overlay dialogs 8. Click payment history icon 9. Make sure the style of the modal dialog is not broken 10. Close the dialog 11. Click advanced options icon 12. Click "Backup your wallet" 13. Make sure background color of the dialog is not changed
- Auditors: @bsclifton, @luixxiul - Close #8333 Test Plan: styles.md should have guidelines about how we make use of Aphrodite
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
@cezaraugusto thanks for reviewing. |
@bsclifton please change the milestone if this is going to be merged to 0.14.2, thanks. #8037 as well. |
FYI: there are several reports that |
See: cropped picture of the 6th commit on #6047 (comment)
Closes #8037
Changed
aphrodite
toaphrodite/no-important
(to speed up removing the LESS files)Aphrodite without no-important overwrites the existing code, which should have been removed from the LESS files at the same time. It will make it difficult to know which styles should be kept and removed, having confidence in that changes would not cause regressions. It might be slowing down the refactoring work.
Modified modalOverlay.js by adding
customHeaderClassesStr
The intent of the change is to make it possible to apply custom styles to
sectionTitle
. In this case,braveMediumOrange
to the title.Introduced
paymentStylesVariables
andpaymentHistoryTablePadding
Appied it to
leftRow
andpaymentHistoryOverlay__title
It aligns the padding-left of
sectionTitle
and the most left row.Set
position:sticky
to the table headerIt always display the table header.
Sticky
has been available on chromium since a couple of versions.Set
columnHeight
andcolumnPadding
Reverted
commonStyles.primaryButton
toprimaryButton
temporarilyThere have been already
browserButton
andprimaryButton
available with commonStyles.js, still these styles are overwritten by ones which button.less defines. We have to work on refactoring button.less at first.Also:
Auditors:
Test Plan:
git rebase -i
to squash commits (if needed).Test Plan: