-
Notifications
You must be signed in to change notification settings - Fork 975
Separate input and select styles using Aphrodite #6689
Conversation
} | ||
|
||
const styles = StyleSheet.create({ | ||
'formControl': { |
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.
Can we share this with that of app/renderer/components/dropdown.js, setting globally somewhere and importing it? I'm wondering if setting them in each file would make a possibility of style inconsistency.
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.
https://travis-ci.org/brave/browser-laptop/builds/192513240#L4619
|
const {StyleSheet} = require('aphrodite') | ||
const globalStyles = require('./global') | ||
|
||
const styles = StyleSheet.create({ |
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.
How about adding these under this line for reference? Is it too much?
/*
app/renderer/components/dropdown.js
app/renderer/components/textbox.js
*/
Also I think we can remove some properties in LESS files thanks to the change. I'll mention them as below for a cleanup task. |
const globalStyles = require('./global') | ||
|
||
const styles = StyleSheet.create({ | ||
'formControl': { |
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.
browser-laptop/less/forms.less
Lines 8 to 21 in 3d1db35
.form-control { | |
display: block; | |
background: white; | |
border: solid 1px @lightGray; | |
border-radius: @borderRadius; | |
box-shadow: inset 0 1px 1px rgba(0,0,0,.075); | |
box-sizing: border-box; | |
color: @darkGray; | |
font-size: 14.5px; | |
height: 2.25em; | |
outline: none; | |
padding: 0.4em; | |
width: 100%; | |
} |
} | ||
}, | ||
'isSettings': { | ||
width: '280px' |
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.
browser-laptop/less/about/preferences.less
Line 373 in baff549
width: 280px; |
boxShadow: 'none', | ||
outline: 'none' | ||
}, | ||
'recoveryKeys': { |
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.
browser-laptop/less/about/preferences.less
Lines 724 to 727 in baff549
.firstRecoveryKey, | |
.secondRecoveryKey { | |
margin-bottom: 20px; | |
} |
@@ -1248,16 +1219,17 @@ class PaymentsTab extends ImmutableComponent { | |||
<td> | |||
<SettingsList> | |||
<SettingItem> | |||
<select className='form-control fundsSelectBox' | |||
<FormDropdown |
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.
@bsclifton Is this applied in some way?
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.
no; I manually tested and it doesn't do anything (it still stays ~10px). Also, the "Add funds" button has a similar padding. If you remove padding from "Add funds" button (ex: set to 0), it looks bad
Feedbacks left. |
@luixxiul I removed styles per your feedback; also I updated the Shields panel to use this new style: |
Fixes #5972 - Create aphrodite components for "text" input type - Create aphrodite components for "select" input type - Small LESS updates to primary button (not Aphrodite component yet) - Update about:styles Auditors: @bbondy, @luixxiul, @cezaraugusto, @bradleyrichter
Implement feedback from #6689 (review) Auditors: @luixxiul
… panel to use new styles - Updated selectors for testing shields - added padding to dropdown to cover size of caret - Fixed broken navigationBar test Auditors: @luixxiul
Implement feedback from #6689 (review) Auditors: @luixxiul
I think the SVG merged with this PR is causing an error on Travis:
|
@luixxiul you are correct; I'm going to need some help w/ it. Let me ask around on Slack |
Implement feedback from #6689 (review) Auditors: @luixxiul
Implement feedback from #6689 (review) Auditors: @luixxiul
Implement feedback from #6689 (review) Auditors: @luixxiul
git rebase -i
to squash commits (if needed).This is an Aphrodite friendly redo of #6084
Fixes #5972
I tested each area manually and did my best to compare to the original PR. @luixxiul, please let me know what you think. I did omit a two updates to select (because they looked bad):
screenshots of textbox / dropdown
Updates to about:styles