{t('youAreSelling')}{' '}
- {b(
- `${amountFormatter(
- props.independentValueParsed,
- props.independentDecimals,
- Math.min(4, props.independentDecimals)
- )} ${props.inputSymbol}`
- )}{' '}
- {t('forAtLeast')}
- {b(
- `${amountFormatter(
- props.dependentValueMinumum,
- props.dependentDecimals,
- Math.min(4, props.dependentDecimals)
- )} ${props.outputSymbol}`
- )}
+
+ {b(
+ `${amountFormatter(
+ props.independentValueParsed,
+ props.independentDecimals,
+ Math.min(4, props.independentDecimals)
+ )} ${props.inputSymbol}`
+ )}
+ {' '}
+ {t('forAtLeast')}{' '}
+
+ {b(
+ `${amountFormatter(
+ props.dependentValueMinumum,
+ props.dependentDecimals,
+ Math.min(4, props.dependentDecimals)
+ )} ${props.outputSymbol}`
+ )}
+
.
- {t('priceChange')} {b(`${props.percentSlippageFormatted}%`)}.
+ {t('priceChange')} {b(`${props.percentSlippageFormatted}%`)}
)
@@ -540,28 +583,32 @@ export default function TransactionDetails(props) {
{t('youAreBuying')}{' '}
- {b(
- `${amountFormatter(
- props.independentValueParsed,
- props.independentDecimals,
- Math.min(4, props.independentDecimals)
- )} ${props.outputSymbol}`
- )}
+
+ {b(
+ `${amountFormatter(
+ props.independentValueParsed,
+ props.independentDecimals,
+ Math.min(4, props.independentDecimals)
+ )} ${props.outputSymbol}`
+ )}
+
.
{t('itWillCost')}{' '}
- {b(
- `${amountFormatter(
- props.dependentValueMaximum,
- props.dependentDecimals,
- Math.min(4, props.dependentDecimals)
- )} ${props.inputSymbol}`
- )}{' '}
+
+ {b(
+ `${amountFormatter(
+ props.dependentValueMaximum,
+ props.dependentDecimals,
+ Math.min(4, props.dependentDecimals)
+ )} ${props.inputSymbol}`
+ )}
+ {' '}
{t('orTransFail')}
- {t('priceChange')} {b(`${props.percentSlippageFormatted}%`)}.
+ {t('priceChange')} {b(`${props.percentSlippageFormatted}%`)}
)
diff --git a/src/theme/components.js b/src/theme/components.js
index 8f1d8a8e33..4dcb2ebb2d 100644
--- a/src/theme/components.js
+++ b/src/theme/components.js
@@ -1,5 +1,5 @@
import styled, { keyframes } from 'styled-components'
-import { lighten, darken } from 'polished'
+import { darken } from 'polished'
export const Button = styled.button.attrs(({ warning, theme }) => ({
backgroundColor: warning ? theme.salmonRed : theme.royalBlue
@@ -18,11 +18,11 @@ export const Button = styled.button.attrs(({ warning, theme }) => ({
:hover,
:focus {
- background-color: ${({ backgroundColor }) => lighten(0.05, backgroundColor)};
+ background-color: ${({ backgroundColor }) => darken(0.05, backgroundColor)};
}
:active {
- background-color: ${({ backgroundColor }) => darken(0.05, backgroundColor)};
+ background-color: ${({ backgroundColor }) => darken(0.1, backgroundColor)};
}
:disabled {