fix gas-tooltip fonts (#12968)

feature/default_network_editable
Alex Donesky 3 years ago committed by GitHub
parent 9dd5af3523
commit 2dd8689d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/edit-gas-tooltip.js

@ -4,6 +4,7 @@ import { PRIORITY_LEVELS } from '../../../../../shared/constants/gas';
import {
COLORS,
FONT_WEIGHT,
TYPOGRAPHY,
} from '../../../../helpers/constants/design-system';
import Typography from '../../../ui/typography';
import { useGasFeeContext } from '../../../../contexts/gasFee';
@ -68,26 +69,26 @@ const EditGasToolTip = ({
) : null}
{priorityLevel === PRIORITY_LEVELS.HIGH ? (
<div className="edit-gas-tooltip__container__dialog">
<Typography fontSize="12px" color={COLORS.WHITE}>
<Typography variant={TYPOGRAPHY.H7} color={COLORS.WHITE}>
{t('highGasSettingToolTipDialog')}
</Typography>
</div>
) : null}
<div className="edit-gas-tooltip__container__message">
<Typography fontSize="12px">{toolTipMessage()}</Typography>
<Typography variant={TYPOGRAPHY.H7}>{toolTipMessage()}</Typography>
</div>
{priorityLevel === PRIORITY_LEVELS.CUSTOM ? null : (
<div className="edit-gas-tooltip__container__values">
<div>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
fontWeight={FONT_WEIGHT.BOLD}
className="edit-gas-tooltip__container__label"
>
{t('maxBaseFee')}
</Typography>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
color={COLORS.NEUTRAL_GREY}
className="edit-gas-tooltip__container__value"
>
@ -96,14 +97,14 @@ const EditGasToolTip = ({
</div>
<div>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
fontWeight={FONT_WEIGHT.BOLD}
className="edit-gas-tooltip__container__label"
>
{t('priorityFee')}
</Typography>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
color={COLORS.NEUTRAL_GREY}
className="edit-gas-tooltip__container__value"
>
@ -112,14 +113,14 @@ const EditGasToolTip = ({
</div>
<div>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
fontWeight={FONT_WEIGHT.BOLD}
className="edit-gas-tooltip__container__label"
>
{t('gasLimit')}
</Typography>
<Typography
fontSize="12px"
variant={TYPOGRAPHY.H7}
color={COLORS.NEUTRAL_GREY}
className="edit-gas-tooltip__container__value"
>

Loading…
Cancel
Save