Skip to content

Commit d0d0aa0

Browse files
committed
fix: added hover feature and pointer arrow on list enabled item
1 parent 722dae6 commit d0d0aa0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Diff for: packages/appstore/src/components/modals/verification-docs-list-modal/ListItem.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Text, StatusBadge } from '@deriv/components';
77
import { AUTH_STATUS_CODES } from '@deriv/shared';
88
import './verification-docs-list-modal.scss';
99
import { useDevice } from '@deriv-com/ui';
10+
import classNames from 'classnames';
1011

1112
type TListItemProps = {
1213
id: string;
@@ -63,7 +64,12 @@ const ListItem = observer(({ id, text, status, route }: TListItemProps) => {
6364
};
6465

6566
return (
66-
<div className='verification-docs-list-modal__content-list-item' onClick={onClickItem}>
67+
<div
68+
className={classNames('verification-docs-list-modal__content-list-item', {
69+
'verification-docs-list-modal__content-list-item--disabled': is_document_submitted,
70+
})}
71+
onClick={onClickItem}
72+
>
6773
<Text size={isMobile ? 'xxs' : 'xs'} line_height='xl'>
6874
<Localize i18n_default_text={text} />
6975
</Text>

Diff for: packages/appstore/src/components/modals/verification-docs-list-modal/verification-docs-list-modal.scss

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
&-list {
99
width: 100%;
1010
&-item {
11+
cursor: pointer;
1112
display: flex;
1213
min-height: 5.6rem;
1314
align-items: center;
@@ -16,6 +17,16 @@
1617
padding: 0.8rem 1.6rem;
1718
justify-content: space-between;
1819
margin: 1.6rem auto;
20+
21+
&:hover {
22+
background: var(--icon-grey-background-hover);
23+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); // Add shadow on hover
24+
}
25+
26+
&--disabled {
27+
cursor: not-allowed;
28+
pointer-events: none;
29+
}
1930
}
2031
}
2132
}

0 commit comments

Comments
 (0)