-
Notifications
You must be signed in to change notification settings - Fork 136
Conversation
39ffe98
to
3482c89
Compare
3064edb
to
07c876b
Compare
I think this one might need an up to date design spec attached to it, right? @jenn-rhim I see the one in the issue but this PR seems to have tabbed navigation within the modal and is missing a few of the UI elements like Once we have that it'd be good to tighten up a few style nits like the floating divider line. |
07c876b
to
f259bb7
Compare
Issue updated with design. Thanks for pointing me in the right direction Jason. |
2c4ea97
to
3eafa18
Compare
@rossmoody Overflow problem for shrinking window is fixed. |
3eafa18
to
b72c24e
Compare
@@ -21,17 +21,18 @@ export interface Props { | |||
children?: React.ReactNode | |||
rows?: Row[] | |||
rowTheme?: {[key: string]: string} | |||
customStyle?: {[key: string]: string} |
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.
cc @petemill and @cezaraugusto as it changes common component
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.
After conferring with @cezaraugusto and @petemill, removed modifications to table and tabs component
src/components/layout/tabs/style.ts
Outdated
text-align: center; | ||
font-family: ${p => p.theme.fontFamily.body}; | ||
height: 60px; |
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.
cc @petemill and @cezaraugusto as it changes common component
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.
After conferring with @cezaraugusto and @petemill, removed modifications to table and tabs component
@@ -58,6 +58,8 @@ export interface SummaryItem { | |||
|
|||
export interface Props { | |||
contributeRows: ContributeRow[] | |||
donationRows: ContributeRow[] |
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 don't use donation
phrase anymore. We only have AC, tip and recurring tip
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.
changed
</StyledVerified> | ||
<div> | ||
<Tabs activeTabId={this.state.tabId} onChange={this.onChange}> | ||
<div data-key='cont1' data-title={'Transactions'}> |
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.
translation needed
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.
done
{getLocale('noStatementTransactions')} | ||
</TableTransactions> | ||
</div> | ||
<div data-key='cont2' data-title={'Monthly contributions'}> |
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.
translation needed
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.
done
{getLocale('paymentMonthly', { day: paymentDay })} | ||
</StyledTableSubTitle> | ||
</div> | ||
<div data-key='cont3' data-title={'Auto-Contribute'}> |
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.
translation needed
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.
done
{getLocale('paymentMonthly', { day: paymentDay })} | ||
</StyledTableSubTitle> | ||
</div> | ||
<div data-key='cont4' data-title={'Tips'}> |
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.
translation needed
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.
done
</StyledVerifiedIcon> | ||
<StyledVerifiedText>{getLocale('braveVerified')}</StyledVerifiedText> | ||
</StyledVerified> | ||
<div> |
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.
is this div needed?
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.
removed
|
||
export const StyledTitle = styled<{}, 'div'>('div')` | ||
font-weight: 600; | ||
color: #1B1D2F; |
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.
please use theme color
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.
done
` | ||
|
||
export const StyledSubTitle = styled<{}, 'span'>('span')` | ||
color: #838391; |
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.
please use theme color
export const StyledSelectOption = styled<{}, 'div'>('div')` | ||
font-size: 22px; | ||
font-weight: 300; | ||
color: #4C54D2; |
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.
please use theme color
export const StyledIconText = styled<{}, 'div'>('div')` | ||
font-size: 14px; | ||
line-height: 1.43; | ||
color: #838391; |
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.
please use theme color
export const StyledWarning = styled<{}, 'div'>('div')` | ||
display: flex; | ||
justify-content: center; | ||
border-top: 1px solid #ebecf0; |
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.
please use theme color
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 there is not a generic and shareabel theme color, then we can create one after asking design team @jenn-rhim @rossmoody, e.g. warningBackgroundBorder
.
If this is a rewards-specific color rule then maybe we should start a rewards theme.
font-weight: 300; | ||
line-height: 2.79; | ||
letter-spacing: 0.2px; | ||
color: #4b4c5c; |
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.
please use theme color
font-size: 12px; | ||
align-items: center; | ||
line-height: 2; | ||
color: #9e9fab; |
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.
please use theme color
` | ||
|
||
export const StyledAlertWrapper = styled<{}, 'div'>('div')` | ||
color: #E9AB18; |
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.
please use theme color
` | ||
|
||
export const StyledActionIcon = styled<{}, 'span'>('span')` | ||
color: #A1A8F2; |
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.
please use theme color
|
||
export const StyledVerifiedIcon = styled<{}, 'div'>('div')` | ||
display: flex; | ||
color: #392DD1; |
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.
please use theme color
@jasonrsadler which version is correct? There is a lot of differences. |
b72c24e
to
60e7360
Compare
@NejcZdovc |
@NejcZdovc Re: theme colors and fonts above. These are the colors that match the spec as well as fonts to match as closely as possible. We don't currently have theme colors to match these and would propose a follow up be done to streamline these. |
It's worth it to have @jenn-rhim weigh in on this one. I'm not close enough to this to know what is or isn't correct. I found that mockup in Abstract but if we've been working off a supplied design it's probably safe to assume that's the right version. I'll update the issue. |
@jasonrsadler colors should be picked from theme pallet, so let's try to find the closest color to what it is picked in the design |
@jasonrsadler what you pasted and what I did in my comparison is almost the same, the only thing that is different is footer text wrapping |
@NejcZdovc regardless, they are different spec files in abstract and I didn’t recognize that file. Again, if we’re adhering to the spec, these are the correct colors. We should define and themify these as appropriate outside of this PR. |
62d3320
to
4275145
Compare
4275145
to
7031b1f
Compare
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.
looks good to me. code looks good and interface is aligned with https://share.goabstract.com/a6b555b0-5f5f-4c0e-8ae8-7d85d31eb7e6?mode=design&sha=59c3c2ccee892fdec04a35a8db19514246401e92
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.
Would be good to have a better way to override Table margin than wrap with negative margin.
Then for colors as @NejcZdovc stated, please use theme colors so we don't dig the whole deeper of difficulty to create dark theme.
` | ||
|
||
export const StyledTable = styled<{}, 'div'>('div')` | ||
margin: -24px 0; |
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.
This will cause an overlap if the default margin changes of the Table component changes. Can we simply call something like?
styled(Table)`
margin: 0;
`
The whole situation isn't ideal, but somehow resetting it to 0
is better than negative-offsetting the currently-set margin value.
text-align: center; | ||
font-family: ${p => p.theme.fontFamily.body}; | ||
height: 60px; | ||
padding-top:5px; |
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.
space between property and value
export const StyledWarning = styled<{}, 'div'>('div')` | ||
display: flex; | ||
justify-content: center; | ||
border-top: 1px solid #ebecf0; |
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 there is not a generic and shareabel theme color, then we can create one after asking design team @jenn-rhim @rossmoody, e.g. warningBackgroundBorder
.
If this is a rewards-specific color rule then maybe we should start a rewards theme.
contributeTx: '#9752cb', | ||
recurringDonationTx: '#696fdc', | ||
grantsTx: '#c12d7c', | ||
earningFromAdsTx: '#c12d7c' |
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.
Theme colors
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 you please remove this check as I don't see it in abstract
Icon is missing on the second tab
Can we remove jumping UI when you switch between tabs. (not talking about modal height, but on text moving left and right; see summary table at the top)
This needs to be changed to Total
until we support start/end month
Core: brave/brave-core#2733
Changes
Implements UI portions for Rewards Monthly Statement for brave/brave-browser#930
Test plan
Link / storybook path to visual changes
https://brave-ui-3c5q3df9x.now.sh/?path=/story/feature-components-rewards-modal--monthly-statement
https://brave-ui-3c5q3df9x.now.sh/?path=/story/feature-components-rewards-concepts-desktop--printable-monthly-statement
Integration
Does this contain changes to src/components or src/
Does this contain changes to src/features for brave-core?