Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaheer/feature/90115/update jurisdiction #74

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
cursor: pointer;
transition: all 0.1s ease-in;

&:not(.selected-card):hover {
&:not(.selected-card):not(.cfd-card-disabled):not(.cfd-card-disabled-flat):hover {
box-shadow: 0 2px 8px 0 var(--shadow-menu);
}

Expand Down Expand Up @@ -289,7 +289,6 @@
align-items: center;
}
&-disabled {
pointer-events: none;
&-flat {
border: solid 1px var(--border-normal);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getJurisdictionLabuanContents = (): TJurisdictionCardItems => ({
description: localize('Forex and Cryptocurrencies'),
title_indicators: {
type: 'displayText',
display_text: localize('90+'),
display_text: localize('80+'),
display_text_skin_color: 'red-dark',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import JurisdictionCardBack from '../jurisdiction-card-back';
describe('<JurisdictionCardBack />', () => {
type TMockProps = {
card_classname: string;
disabled: boolean;
toggleCardFlip: jest.Mock;
is_card_selected: boolean;
verification_docs: (
Expand All @@ -18,6 +19,7 @@ describe('<JurisdictionCardBack />', () => {

const mock_props: TMockProps = {
card_classname: 'test_classname',
disabled: false,
is_card_selected: false,
toggleCardFlip: jest.fn(),
verification_docs: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TJurisdictionCardBackProps } from 'Containers/props.types';

const JurisdictionCardBack = ({
card_classname,
disabled,
is_card_selected,
toggleCardFlip,
verification_docs,
Expand All @@ -14,6 +15,7 @@ const JurisdictionCardBack = ({
data-testid='dt_jurisdiction_card_back_container'
className={classNames(card_classname, 'cfd-card-back', {
[`${card_classname}--selected selected-card`]: is_card_selected,
'cfd-card-disabled-flat': disabled,
})}
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const JurisdictionCard = ({
/>
<JurisdictionCardBack
card_classname={card_classname}
disabled={disabled}
is_card_selected={is_card_selected}
toggleCardFlip={toggleCardFlip}
verification_docs={verification_docs}
Expand Down
1 change: 1 addition & 0 deletions packages/cfd/src/Containers/props.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export type TJurisdictionCardProps = {

export type TJurisdictionCardBackProps = {
card_classname: string;
disabled: boolean;
is_card_selected: boolean;
toggleCardFlip: React.MouseEventHandler<HTMLSpanElement>;
verification_docs: TJurisdictionCardItemVerification | undefined;
Expand Down
3 changes: 1 addition & 2 deletions packages/cfd/src/sass/cfd-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
cursor: pointer;
transition: all 0.1s ease-in;

&:not(.selected-card):hover {
&:not(.selected-card):not(.cfd-card-disabled):not(.cfd-card-disabled-flat):hover {
box-shadow: 0 2px 8px 0 var(--shadow-menu);
}

Expand Down Expand Up @@ -779,7 +779,6 @@
align-items: center;
}
&-disabled {
pointer-events: none;
&-flat {
border: solid 1px var(--border-normal);
}
Expand Down