Skip to content

Commit

Permalink
Remove custom border-radius from buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Jul 30, 2022
1 parent e94f8c4 commit 96c1ddb
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
/>
<button
class="c5"
style="border-radius: 4px;"
type="submit"
>
account.addEscrow.delegate
Expand Down
7 changes: 1 addition & 6 deletions src/app/components/AddEscrowForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ export const AddEscrowForm = memo((props: Props) => {
required
/>
</Box>
<Button
label={t('account.addEscrow.delegate', 'Delegate')}
type="submit"
primary
style={{ borderRadius: '4px' }}
/>
<Button label={t('account.addEscrow.delegate', 'Delegate')} type="submit" primary />
</Box>
<TransactionStatus error={error} success={success} />
</Form>
Expand Down
1 change: 0 additions & 1 deletion src/app/components/FatalErrorHandler/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export function FatalErrorHandler(props: Props) {
? t('fatalError.copy', 'Copy error to clipboard')
: t('fatalError.copied', 'Error copied to clipboard')
}
style={{ borderRadius: '4px' }}
/>
</Box>
</Box>
Expand Down
8 changes: 1 addition & 7 deletions src/app/components/MnemonicValidation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,11 @@ export function MnemonicValidation(props: Props) {
<Button
type="submit"
label={t('openWallet.mnemonic.import', 'Import my wallet')}
style={{ borderRadius: '4px' }}
primary
onClick={onSubmit}
/>
{props.abortHandler && (
<Button
label={t('common.cancel', 'Cancel')}
style={{ borderRadius: '4px' }}
secondary
onClick={props.abortHandler}
/>
<Button label={t('common.cancel', 'Cancel')} secondary onClick={props.abortHandler} />
)}
</Box>
</Form>
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const ModalContainer = ({ modal, closeModal }: ModalContainerProps) => {
label={t('common.cancel', 'Cancel')}
onClick={closeModal}
secondary
style={{ borderRadius: '4px' }}
icon={<Close size="18px" />}
/>
<Button
Expand All @@ -52,7 +51,6 @@ const ModalContainer = ({ modal, closeModal }: ModalContainerProps) => {
disabled={modal.isDangerous}
primary={modal.isDangerous}
color={modal.isDangerous ? 'status-error' : ''}
style={{ borderRadius: '4px' }}
icon={modal.isDangerous ? <Alert size="18px" /> : <Checkmark size="18px" />}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ exports[`<ReclaimEscrowForm /> should match snapshot 1`] = `
/>
<button
class="c6"
style="border-radius: 4px;"
type="submit"
>
account.reclaimEscrow.reclaim
Expand All @@ -324,7 +323,6 @@ exports[`<ReclaimEscrowForm /> should match snapshot 1`] = `
/>
<button
class="c7"
style="border-radius: 4px;"
type="button"
>
account.reclaimEscrow.reclaimAll
Expand Down
13 changes: 2 additions & 11 deletions src/app/components/ReclaimEscrowForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,8 @@ export const ReclaimEscrowForm = memo((props: Props) => {
/>
</Box>
</Box>
<Button
label={t('account.reclaimEscrow.reclaim', 'Reclaim')}
type="submit"
primary
style={{ borderRadius: '4px' }}
/>
<Button
label={t('account.reclaimEscrow.reclaimAll', 'Reclaim all')}
onClick={reclaimAll}
style={{ borderRadius: '4px' }}
/>
<Button label={t('account.reclaimEscrow.reclaim', 'Reclaim')} type="submit" primary />
<Button label={t('account.reclaimEscrow.reclaimAll', 'Reclaim all')} onClick={reclaimAll} />
</Box>
{shares > 0 && (
<Text size="small" data-testid="numberOfShares">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ exports[`<AccountSelector /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
-webkit-transition-property: color,background-color,border-color,box-shadow;
transition-property: color,background-color,border-color,box-shadow;
-webkit-transition-duration: 0.1s;
Expand Down Expand Up @@ -508,7 +508,6 @@ exports[`<AccountSelector /> should match snapshot 1`] = `
>
<button
class="c16"
style="border-radius: 4px;"
type="button"
>
toolbar.wallets.close
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,7 @@ export const AccountSelector = memo((props: Props) => {
{accounts}
</Box>
<Box align="end" pad={{ top: 'medium' }}>
<Button
primary
style={{ borderRadius: '4px' }}
label={t('toolbar.wallets.close', 'Close')}
onClick={props.closeHandler}
/>
<Button primary label={t('toolbar.wallets.close', 'Close')} onClick={props.closeHandler} />
</Box>
</Box>
</ResponsiveLayer>
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/TransactionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export function TransactionModal() {
<Button
secondary
label={t('transaction.abort', 'Abort')}
style={{ borderRadius: '4px' }}
icon={<Close size="18px" />}
onClick={abortTransaction}
/>
Expand All @@ -77,7 +76,6 @@ export function TransactionModal() {
label={t('transaction.confirm', 'Confirm')}
onClick={confirmTransaction}
icon={<Checkmark size="18px" />}
style={{ borderRadius: '4px' }}
alignSelf="end"
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export function SendTransaction(props: SendTransactionProps) {
<Button
type="submit"
label={t('account.sendTransaction.send', 'Send')}
style={{ borderRadius: '4px' }}
onClick={onSubmit}
primary
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,14 @@ exports[`<AccountPage /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
-webkit-transition-property: color,background-color,border-color,box-shadow;
transition-property: color,background-color,border-color,box-shadow;
-webkit-transition-duration: 0.1s;
Expand Down Expand Up @@ -1125,7 +1125,6 @@ exports[`<AccountPage /> should match snapshot 1`] = `
>
<button
class="c29"
style="border-radius: 4px;"
type="submit"
>
Send
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,14 @@ exports[`<CreateWalletPage /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
-webkit-transition-property: color,background-color,border-color,box-shadow;
transition-property: color,background-color,border-color,box-shadow;
-webkit-transition-duration: 0.1s;
Expand Down Expand Up @@ -414,14 +414,14 @@ exports[`<CreateWalletPage /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
opacity: 0.3;
cursor: default;
-webkit-transition-property: color,background-color,border-color,box-shadow;
Expand Down Expand Up @@ -1427,7 +1427,6 @@ exports[`<CreateWalletPage /> should match snapshot 1`] = `
>
<button
class="c10"
style="border-radius: 4px;"
type="button"
>
<div
Expand Down Expand Up @@ -1512,7 +1511,6 @@ exports[`<CreateWalletPage /> should match snapshot 1`] = `
<button
class="c27"
disabled=""
style="border-radius: 4px;"
type="submit"
>
openWallet.mnemonic.import
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/CreateWalletPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function CreateWalletPage(props: CreateWalletProps) {
<Button
icon={<Refresh />}
label={t('createWallet.newMnemonic', 'Generate a new mnemonic')}
style={{ borderRadius: '4px' }}
primary
onClick={regenerateMnemonic}
/>
Expand Down Expand Up @@ -140,7 +139,6 @@ export function CreateWalletPage(props: CreateWalletProps) {
<Button
type="submit"
label={t('openWallet.mnemonic.import', 'Import my wallet')}
style={{ borderRadius: '4px' }}
primary
disabled={!checked}
onClick={() => {
Expand Down
9 changes: 1 addition & 8 deletions src/app/pages/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function HomePage() {
<Button
type="submit"
label={t('home.existing.button', 'Open wallet')}
style={{ borderRadius: '4px' }}
primary
icon={<Unlock />}
/>
Expand All @@ -50,13 +49,7 @@ export function HomePage() {
</Paragraph>
<Box direction="row" justify="between" margin={{ top: 'medium' }}>
<NavLink to="/create-wallet">
<Button
type="submit"
label={t('home.create.button', 'Create wallet')}
style={{ borderRadius: '4px' }}
primary
icon={<Add />}
/>
<Button type="submit" label={t('home.create.button', 'Create wallet')} primary icon={<Add />} />
</NavLink>
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports[`<FromLedgerModal /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
Expand Down Expand Up @@ -128,14 +128,14 @@ exports[`<FromLedgerModal /> should match snapshot 1`] = `
-ms-flex-item-align: end;
align-self: flex-end;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
opacity: 0.3;
cursor: default;
-webkit-transition-property: color,background-color,border-color,box-shadow;
Expand Down Expand Up @@ -380,7 +380,6 @@ exports[`<FromLedgerModal /> should match snapshot 1`] = `
<button
class="c8"
disabled=""
style="border-radius: 4px;"
type="button"
>
openWallet.ledger.cancel
Expand All @@ -392,7 +391,6 @@ exports[`<FromLedgerModal /> should match snapshot 1`] = `
class="c10"
data-testid="ledger-open-accounts"
disabled=""
style="border-radius: 4px;"
type="button"
>
openWallet.ledger.openWallets
Expand Down
3 changes: 0 additions & 3 deletions src/app/pages/OpenWalletPage/Features/FromLedger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export function FromLedger(props: FromLedgerProps) {
<Button
type="submit"
label={t('openWallet.ledger.selectWallets', 'Select accounts to open')}
style={{ borderRadius: '4px' }}
onClick={() => {
showLedgerModal(true)
}}
Expand Down Expand Up @@ -148,7 +147,6 @@ export function FromLedgerModal(props: FromLedgerModalProps) {
<Button
secondary
label={t('openWallet.ledger.cancel', 'Cancel')}
style={{ borderRadius: '4px' }}
onClick={props.abort}
disabled={cancelDisabled}
/>
Expand All @@ -157,7 +155,6 @@ export function FromLedgerModal(props: FromLedgerModalProps) {
data-testid="ledger-open-accounts"
label={t('openWallet.ledger.openWallets', 'Open')}
onClick={openAccounts}
style={{ borderRadius: '4px' }}
alignSelf="end"
disabled={confirmDisabled}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ exports[`<FromMnemonic/> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
-webkit-transition-property: color,background-color,border-color,box-shadow;
transition-property: color,background-color,border-color,box-shadow;
-webkit-transition-duration: 0.1s;
Expand Down Expand Up @@ -485,7 +485,6 @@ exports[`<FromMnemonic/> should match snapshot 1`] = `
>
<button
class="c11"
style="border-radius: 4px;"
type="submit"
>
openWallet.mnemonic.import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ exports[`<FromPrivateKey /> should match snapshot 1`] = `
overflow: visible;
text-transform: none;
border: 2px solid #0092f6;
border-radius: 18px;
border-radius: 4px;
color: #444444;
padding: 4px 22px;
font-size: 18px;
line-height: 24px;
background-color: #0092f6;
color: #f8f8f8;
border-radius: 18px;
border-radius: 4px;
-webkit-transition-property: color,background-color,border-color,box-shadow;
transition-property: color,background-color,border-color,box-shadow;
-webkit-transition-duration: 0.1s;
Expand Down Expand Up @@ -504,7 +504,6 @@ exports[`<FromPrivateKey /> should match snapshot 1`] = `
>
<button
class="c13"
style="border-radius: 4px;"
type="submit"
>
openWallet.mnemonic.import
Expand Down
Loading

0 comments on commit 96c1ddb

Please sign in to comment.