Skip to content

Commit

Permalink
moved embedded HTML color codes to app.module.css
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavnathe committed Jan 21, 2025
1 parent c4fe5c2 commit 855dd78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ import '../src/assets/css/scrollStyles.css';
const theme = createTheme({
palette: {
primary: {
main: '#1778F2',
main: getComputedStyle(document.documentElement)
.getPropertyValue('--blue-primary')
.trim(),
},
},
});
Expand Down
24 changes: 1 addition & 23 deletions src/screens/OrganizationActionItems/OrganizationActionItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,29 +466,7 @@ function organizationActionItems(): JSX.Element {
</Stack>
),
}}
sx={{
borderRadius: '20px',
backgroundColor: 'FFFFFF)',
'& .MuiDataGrid-row': {
backgroundColor: '#FFFFFF',
'&:focus-within': {
// outline: '2px solid #000',
outlineOffset: '-2px',
},
},
'& .MuiDataGrid-row:hover': {
backgroundColor: '#FFFFFF',
boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)',
},
'& .MuiDataGrid-row.Mui-hovered': {
backgroundColor: '#FFFFFF',
boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)',
},
'& .MuiDataGrid-cell:focus': {
// outline: '2px solid #000',
// outlineOffset: '-2px',
},
}}
className={styles.dataGridContainer}
getRowClassName={() => `${styles.rowBackground}`}
autoHeight
rowHeight={65}
Expand Down
4 changes: 4 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@
margin-top: 20px;
}

.dataGridContainer {
border-radius: 20px;
}

.rowBackground {
background-color: var(--row-background);
max-height: 120px;
Expand Down

0 comments on commit 855dd78

Please sign in to comment.