-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTP Settings Design Fixes #6351
Conversation
stackPosition: number | ||
} | ||
|
||
const getBackgroundRule = (position: number) => { |
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 originally wrote something to dynamically generate these gradient rules based on the position, but this is more explicit and readable
@@ -137,6 +137,7 @@ interface Props { | |||
disconnectInProgress: boolean | |||
authInvalid: boolean | |||
selectedView: string | |||
stackPosition: number |
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.
nit: instead of all this repeated props, you could have something like
[another file]
type WidgetProps {
stackPosition: number
...
}
[this file]
type Props = WidgetProps & {
...binance-specific-props...
}
|
||
return ( | ||
<StyledTitleTab onClick={onShowContent}> | ||
<StyledTitleTab onClick={onShowContent} stackPosition={stackPosition}> |
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.
nit (continued): and here do <StyledTitleTab ...getWidgetTitleProps(this.props)>
...but that's if you didn't want to do the repetition ;-)
` | ||
|
||
export const SettingsFeatureBody = styled<{}, 'section'>('section')` | ||
padding: 10px 16px 0; | ||
height: 305px; | ||
padding: 10px 16px 10px; |
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.
nit: the extra 10px is now redundant
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.
Didn't get a chance to try the changes yet, but code looks good. Just very minor code style feedback.
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
Verification PASSED on
As per brave/brave-browser#11103 (comment), verified that the suggestions via brave/brave-browser#10318 (comment) and #6015 (comment) have been addressed.
Also checked the following:
|
@ryanml @karenkliu possible issues/questions. I don't think any of these are blocking and we can continue uplifting #6372. However, let me know if I should create follow up issues. Looks like the font is still
The height of |
Talked to @ryanml and @karenkliu re: the above, both are known and not issues 👍 |
Fixes: brave/brave-browser#11103
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
See issue
Reviewer Checklist:
After-merge Checklist:
changes has landed on.