Skip to content

Commit d0bb123

Browse files
feat: Added style adaption fix fox the DirectEntry and the SelectHeader row style (#1033)
2 parents 71f5517 + 452bd71 commit d0bb123

4 files changed

Lines changed: 46 additions & 10 deletions

File tree

apps/widget/src/components/Common/Container/Container.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ export function Container({ children }: PropsWithChildren<{}>) {
532532
// Ensure text remains visible
533533
color: 'var(--text-color)',
534534

535-
// Make sure all child elements maintain proper text color
536535
'& td': {
537536
color: 'var(--text-color)',
538537
},

apps/widget/src/components/widget/Phases/Phase1/DirectEntryView/DirectEntryView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function DirectEntryView({
2323
}: DirectEntryViewProps) {
2424
return (
2525
<Box
26-
bg="var(--stepper-background)"
26+
bg="var(--primary-background)"
2727
style={{ borderRadius: 'var(--border-radius)' }}
2828
pt="sm"
2929
pl="sm"

apps/widget/src/components/widget/Phases/Phase1/Phase1.Styles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const getContentWrapperStyles = (theme: MantineTheme): CSSProperties => ({
66
[`@media (min-width: ${theme.breakpoints.sm}px)`]: {
77
width: '48%',
88
},
9+
backgroundColor: 'var(--primary-background)',
910
});
1011

1112
export const getTemplateContainerStyles = (): CSSProperties => ({

apps/widget/src/components/widget/Phases/SelectHeader/SelectHeader.styles.tsx

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,70 @@ export default createStyles((theme: MantineTheme): Record<string, any> => {
77
borderSpacing: 0,
88
borderCollapse: 'separate',
99
borderRadius: 'var(--border-radius)',
10+
11+
'& thead th': {
12+
backgroundColor: 'var(--stepper-background) !important',
13+
color: 'var(--text-color) !important',
14+
fontWeight: '600 !important',
15+
borderBottom: '1px solid var(--border-color) !important',
16+
padding: '12px !important',
17+
textAlign: 'left',
18+
},
19+
20+
'& tbody td': {
21+
color: 'var(--text-color) !important',
22+
backgroundColor: 'var(--background-color) !important',
23+
},
1024
},
1125
row: {
1226
cursor: 'pointer',
27+
position: 'relative',
1328
'&:hover': {
14-
backgroundColor: '#DFE2FF',
29+
backgroundColor: 'var(--table-hover-background) !important',
1530
},
1631
},
1732
selectedRow: {
18-
backgroundColor: '#DFE2FF',
19-
fontWeight: 700, // Bold font weight for selected row
33+
backgroundColor: `${theme.fn.rgba(theme.colors.primary[5], 0.1)} !important`,
34+
fontWeight: 700,
35+
2036
'&:hover': {
21-
backgroundColor: '#DFE2FF',
37+
backgroundColor: `${theme.fn.rgba(theme.colors.primary[5], 0.15)} !important`,
38+
},
39+
40+
'& td': {
41+
backgroundColor: 'transparent !important',
2242
},
2343
},
2444
aboveSelectedRow: {
25-
backgroundColor: '#F3F4F6',
26-
color: 'var(--label-color)',
27-
fontWeight: 300, // Lighter font weight for rows above selected
45+
backgroundColor: 'var(--stepper-background) !important',
46+
color: 'var(--label-color) !important',
47+
fontWeight: 300,
2848
},
2949
cell: {
3050
textWrap: 'nowrap',
31-
border: `1px solid ${theme.colors.gray[3]}`,
51+
border: '1px solid var(--border-color) !important',
3252
padding: theme.spacing.xs,
3353
backgroundColor: 'transparent',
54+
color: 'var(--text-color) !important',
55+
position: 'relative',
3456
},
3557
radioCell: {
3658
width: '40px',
3759
textAlign: 'center',
3860
},
61+
62+
tableContainer: {
63+
position: 'relative',
64+
'&::after': {
65+
content: '""',
66+
position: 'absolute',
67+
bottom: 0,
68+
left: 0,
69+
right: 0,
70+
height: '3px',
71+
backgroundColor: 'var(--button-primary-background)',
72+
borderRadius: '0 0 var(--border-radius) var(--border-radius)',
73+
},
74+
},
3975
};
4076
});

0 commit comments

Comments
 (0)