-
Notifications
You must be signed in to change notification settings - Fork 972
Update: SVG workand clean up on about pref page #6904
Conversation
Thanks for your hard work. Would you please open an issue or associate this PR to the existing one if any so @bradleyrichter and @bsclifton would review the PR? |
And I am afraid this work woud need refactoring to Aphrodite (to avoid duplicate work). This is the guideline that might be worth reading if you have not looked at: https://github.com/brave/browser-laptop/blob/master/docs/style.md CC @bsclifton for an advice |
@gyandeeps I can help you make this Aphrodite friendly 😄 I should be able to review this soon (hang in there!) In the meantime, can you create an issue for this? I know we originally wanted to solve the URL bar icons (which is captured with #5891) |
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.
Per our conversation on Slack, @gyandeeps, if you could rework this using the Aphrodite styles that would be great 😄 It would basically involve creating a component and putting the styles in JavaScript. Let me know if I can help in any way. Thanks again! 😄
@gyandeeps nice work here. Based on @bsclifton request, we have a new wiki page regarding how to refactor styles which may help you: https://github.com/brave/browser-laptop/wiki/Refactoring-styles-to-Aphrodite |
809bc75
to
7e95e17
Compare
Split prefs nav components, refactored to Aphrodite, rebased. Ready for code review. Note: Thanks @gyandeeps for the great initial work. Way better overall styles and flexbox usage. 🎉 |
const ModalOverlay = require('../components/modalOverlay') | ||
const {SettingsList, SettingItem, SettingCheckbox, SiteSettingCheckbox} = require('../../app/renderer/components/settings') | ||
const {SettingTextbox} = require('../../app/renderer/components/textbox') | ||
const {SettingDropdown} = require('../../app/renderer/components/dropdown') | ||
const Button = require('../components/button') | ||
const HelpfulHints = require('../../app/renderer/components/preferences/helpfulHints') |
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.
@cezaraugusto should this be deleted?
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.
yes it migrated to preferenceNavigation
@cezaraugusto Latest changes broke the change I made, where i moved the lower hint text block to always be at the bottom and on resize stick to the bottom. Current: https://cloud.githubusercontent.com/assets/5554486/23006222/2e7ada34-f3c6-11e6-9824-7a224fab27aa.png Expected: https://bravesoftware.slack.com/files/bradrichter/F3XQDKR0X/pasted_image_at_2017_01_26_01_43_pm.png Notes:
|
That was a nice improvement. Need to keep that part of the PR working.
… On Feb 15, 2017, at 7:33 PM, Gyandeep Singh ***@***.***> wrote:
@cezaraugusto Latest changes broke the change I made, where i moved the lower hint text block to always be at the bottom annd on resize stick to the bottom.
Current:
Expected:
https://bravesoftware.slack.com/files/bradrichter/F3XQDKR0X/pasted_image_at_2017_01_26_01_43_pm.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
7e95e17
to
9ad0f37
Compare
padding: '30px 0', | ||
marginTop: '20px' | ||
padding: '20px 0 0', | ||
overflowY: '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.
adding sync and plugins tabs made menu taller, so helpfulHints got cut.
For small displays it adds a scrollbar to address that
padding: '20px 0 0', | ||
overflowY: 'auto', | ||
|
||
'@media (min-height: 620px)': { |
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.
if we have enough display height then put hints at screen's bottom.
Ideally we should do it on navigation itself but then we lost the active indicator (arrow)
@gyandeeps @bradleyrichter sorry I was unaware of those changes. Updated. |
Auditors: @cezaraugusto
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.
Great job with the original cleanup @gyandeeps and awesome job @cezaraugusto with the Aphrodite refactor 😄 I put some stubs in place in paymentsTabTest.js
and preferencesTest.js
to fix broken tests. Other than that, everything looks great! 🎉
Test Plan
Description
fixes #6931
This is cleanup work to consume svg icons on the about:pref page.
git rebase -i
to squash commits (if needed).