Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 518d87f

Browse files
authored
Merge pull request #1662 from blockchain/tbozz-changes
Tbozz changes
2 parents 65032da + f9051a3 commit 518d87f

11 files changed

Lines changed: 50 additions & 22 deletions

File tree

packages/blockchain-info-components/src/Buttons/Button.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ const BaseButton = styled.button.attrs({
4343
4444
&:hover {
4545
border-color: ${props =>
46-
props.disabled ? 'none' : darken(0.1, props.theme[props.borderColor])};
46+
props.disabled
47+
? 'none'
48+
: props.hoverBorderColor
49+
? props.theme[props.hoverBorderColor]
50+
: darken(0.1, props.theme[props.borderColor])};
4751
background-color: ${props =>
4852
props.disabled
4953
? 'none'
@@ -63,7 +67,8 @@ const selectColor = (nature, disabled, small) => {
6367
return {
6468
color: small ? 'brand-secondary' : 'gray-6',
6569
backgroundColor: 'white',
66-
borderColor: 'gray-2'
70+
borderColor: 'gray-2',
71+
hoverBorderColor: 'white'
6772
}
6873
case 'light':
6974
return {
@@ -138,15 +143,19 @@ const selectColor = (nature, disabled, small) => {
138143
default:
139144
return {
140145
color: 'gray-6',
141-
backgroundColor: 'white',
142-
borderColor: 'gray-2'
146+
backgroundColor: 'grey000',
147+
borderColor: 'gray-2',
148+
hoverBorderColor: 'white'
143149
}
144150
}
145151
}
146152

147153
const Button = props => {
148154
const { children, nature, disabled, small, ...rest } = props
149-
const { color, backgroundColor, borderColor } = selectColor(nature, small)
155+
const { color, backgroundColor, borderColor, hoverBorderColor } = selectColor(
156+
nature,
157+
small
158+
)
150159

151160
return (
152161
<BaseButton
@@ -155,6 +164,7 @@ const Button = props => {
155164
color={color}
156165
backgroundColor={backgroundColor}
157166
borderColor={borderColor}
167+
hoverBorderColor={hoverBorderColor}
158168
>
159169
{children}
160170
</BaseButton>

packages/blockchain-info-components/src/Buttons/__snapshots__/Button.spec.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exports[`Button component default renders correctly 1`] = `
1010
disabled={false}
1111
fullwidth={false}
1212
height="40px"
13+
hoverBorderColor="white"
1314
rounded={false}
1415
size="14px"
1516
uppercase={false}

packages/blockchain-info-components/src/Colors/Default.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ export default {
136136
whiteFade100: 'rgba(255,255,255,0.1)',
137137
greyFade800: 'rgba(18, 29, 51, 0.8)',
138138
greyFade200: 'rgba(5, 24, 61, 0.2)',
139+
grey000: '#F0F2F7',
139140
grey100: '#DFE3EB',
140141
grey600: '#677185',
142+
grey800: '#353F52',
141143
blue000: '#ECF5FE',
142144
blue100: '#D8EBFD',
143145
blue200: '#BBDBFC',

packages/blockchain-wallet-v4-frontend/src/components/MenuLeft/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export const MenuItem = styled.button`
1515
display: flex;
1616
justify-content: flex-start;
1717
align-items: center;
18-
padding: 14px 16px;
18+
height: 48px;
19+
padding: 0px 16px;
1920
margin-bottom: 8px;
2021
box-sizing: border-box;
2122
border-width: 0px;
@@ -76,7 +77,7 @@ export const MenuItem = styled.button`
7677
background: ${props =>
7778
props.colorCode && transparentize(0.75, props.theme[props.colorCode])};
7879
.destination {
79-
color: ${props => props.theme['grey600']};
80+
color: ${props => props.theme['grey800']};
8081
}
8182
}
8283
}

packages/blockchain-wallet-v4-frontend/src/layouts/Public/ExternalLinks/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const RightContainer = styled.div`
2121
align-items: flex-end;
2222
`
2323
const Wrapper = styled.div`
24+
margin-top: 16px;
2425
display: flex;
2526
flex-direction: row;
2627
justify-content: space-between;

packages/blockchain-wallet-v4-frontend/src/layouts/Wallet/Header/Settings/template.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ const DropdownMenu = styled.div`
3838
right: 0;
3939
z-index: 3;
4040
padding: 8px;
41-
border-radius: 8px;
41+
border-radius: 4px;
4242
background: ${props => props.theme['white']};
4343
box-shadow: 0px 0px 16px rgba(18, 29, 51, 0.25);
4444
`
4545
const DropdownMenuItem = styled(MenuItem)`
4646
white-space: nowrap;
4747
padding: 8px 16px;
48+
margin-bottom: 0;
4849
`
4950
const DropdownMenuArrow = styled.div`
5051
position: absolute;

packages/blockchain-wallet-v4-frontend/src/layouts/Wallet/MenuLeft/Footer/index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ const Wrapper = styled.div`
1414
`
1515
const AdsButton = styled(Button)`
1616
margin: 8px auto 0px auto;
17-
span > span {
17+
transition: background 0.3s;
18+
line-height: normal;
19+
span > span:not(:first-child) {
1820
color: ${props => props.theme['blue']};
1921
}
22+
&:hover {
23+
span:first-child {
24+
color: ${props => props.theme['grey800']};
25+
}
26+
}
2027
`
2128
const ButtonText = styled(Text)`
2229
display: flex;
@@ -25,6 +32,7 @@ const ButtonText = styled(Text)`
2532
`
2633
const ArrowIcon = styled(Icon)`
2734
margin-left: 4px;
35+
font-size: 16px;
2836
`
2937

3038
const Footer = ({ actions, countryCode, adsBlacklist }) => {
@@ -48,8 +56,8 @@ const Footer = ({ actions, countryCode, adsBlacklist }) => {
4856
>
4957
<ButtonText color='gray-4' size='14px' weight={500}>
5058
<FormattedHTMLMessage
51-
id='layouts.wallet.menuleft.footer.bitcoingames'
52-
defaultMessage='Bitcoin Games. <span>Play Now</span>'
59+
id='layouts.wallet.menuleft.footer.bitcoingames2'
60+
defaultMessage='<span>Bitcoin Games.</span> <span>Play Now</span>'
5361
/>
5462
<ArrowIcon name='short-right-arrow' color='blue' />
5563
</ButtonText>

packages/blockchain-wallet-v4-frontend/src/layouts/Wallet/MenuLeft/Navigation/template.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
MenuIcon,
1313
MenuItem,
1414
Separator,
15-
SubMenu,
16-
SubMenuItem,
15+
// SubMenu,
16+
// SubMenuItem,
1717
Wrapper
1818
} from 'components/MenuLeft'
1919
import { Text, TooltipIcon, TooltipHost } from 'blockchain-info-components'
@@ -36,7 +36,11 @@ const NewCartridge = styled(Cartridge)`
3636
`
3737
const Navigation = props => {
3838
const { ...rest } = props
39-
const { lockboxOpened, lockboxDevices, supportedCoins } = rest
39+
const {
40+
// lockboxOpened,
41+
// lockboxDevices,
42+
supportedCoins
43+
} = rest
4044
const coinOrder = [
4145
supportedCoins.PAX,
4246
supportedCoins.BTC,
@@ -111,7 +115,7 @@ const Navigation = props => {
111115
</HelperTipContainer>
112116
</MenuItem>
113117
</LinkContainer>
114-
{lockboxOpened && (
118+
{/* lockboxOpened && (
115119
<SubMenu>
116120
{lockboxDevices.map((device, index) => {
117121
const deviceName = device.device_name
@@ -133,7 +137,7 @@ const Navigation = props => {
133137
)
134138
})}
135139
</SubMenu>
136-
)}
140+
) */}
137141
<Separator />
138142
{values(
139143
mapObjIndexed(

packages/blockchain-wallet-v4-frontend/src/layouts/Wallet/MenuTop/Actions/template.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const Actions = ({ showModal, sendAvailable, requestAvailable }) => (
4242
onClick={() => showModal('SEND')}
4343
min='100px'
4444
data-e2e='sendButton'
45-
height='40px'
45+
height='48px'
4646
>
47-
<ButtonText size='13px' weight={600} color='brand-primary'>
47+
<ButtonText size='16px' weight={600} color='brand-primary'>
4848
<FormattedMessage
4949
id='layouts.wallet.menutop.send'
5050
defaultMessage='Send'
@@ -58,9 +58,9 @@ const Actions = ({ showModal, sendAvailable, requestAvailable }) => (
5858
onClick={() => showModal('REQUEST')}
5959
min='100px'
6060
data-e2e='requestButton'
61-
height='40px'
61+
height='48px'
6262
>
63-
<ButtonText size='13px' weight={600} color='brand-primary'>
63+
<ButtonText size='16px' weight={600} color='brand-primary'>
6464
<FormattedMessage
6565
id='layouts.wallet.menutop.request'
6666
defaultMessage='Request'

packages/blockchain-wallet-v4-frontend/src/layouts/Wallet/MenuTop/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Wrapper = styled.div`
1212
align-items: center;
1313
width: 100%;
1414
height: 100%;
15-
padding: 10px 30px;
15+
padding: 8px 30px;
1616
box-sizing: border-box;
1717
z-index: 10;
1818

0 commit comments

Comments
 (0)