Skip to content

Commit

Permalink
Merge pull request #584 from Concordium/ui-update/text-color-fix
Browse files Browse the repository at this point in the history
UI update/text color fix
  • Loading branch information
soerenbf authored Dec 18, 2024
2 parents 5ebf60a + 99299eb commit 2667cf2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function HighStakeWarning({ onContinue, ...props }: HighStakeNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}
<Text.Capture>{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonContinue')} onClick={onContinue} />
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { formatCcdAmount } from '@popup/popupX/shared/utils/helpers';
import FullscreenNotice, { FullscreenNoticeProps } from '@popup/popupX/shared/FullscreenNotice';
import Page from '@popup/popupX/shared/Page';
import Button from '@popup/popupX/shared/Button';
import Text from '@popup/popupX/shared/Text';

import DelegatorStake from './Stake';
import DelegatorType from './Type';
import { configureDelegatorPayloadFromForm, type DelegatorForm } from './util';
Expand All @@ -22,7 +24,7 @@ function NoChangesNotice(props: FullscreenNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description')}
<Text.Capture>{t('description')}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
</Page.Footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function HighStakeWarning({ onContinue, ...props }: HighStakeNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}
<Text.Capture>{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonContinue')} onClick={onContinue} />
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Button from '@popup/popupX/shared/Button';
import { useBlockChainParametersAboveV0 } from '@popup/shared/BlockChainParametersProvider';
import { useSelectedAccountInfo } from '@popup/shared/AccountInfoListenerContext/AccountInfoListenerContext';
import { formatCcdAmount } from '@popup/popupX/shared/utils/helpers';
import Text from '@popup/popupX/shared/Text';

import { ValidatorForm, ValidatorFormExisting, configureValidatorFromForm } from './util';
import ValidatorStake from './Stake';
Expand All @@ -27,7 +28,7 @@ function NoChangesNotice(props: FullscreenNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description')}
<Text.Capture>{t('description')}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
</Page.Footer>
Expand Down
2 changes: 2 additions & 0 deletions packages/browser-wallet/src/popup/popupX/styles/_base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
&:not(html) {
background-color: rgba($color-black, 0.9);
color: $color-white;
font-family: $t-font-family-satoshi;
}

.bg {
Expand Down

0 comments on commit 2667cf2

Please sign in to comment.