Skip to content

Commit 3354a80

Browse files
committed
pushing theme.ts file and bargraphcomparison to additionalMUI branch
1 parent 50aba93 commit 3354a80

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

src/app/components/StateRoute/PerformanceVisx/BarGraphComparisonActions.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const BarGraphComparisonActions = (props: BarGraphComparisonAction) => {
118118
minWidth: 80,
119119
height: 30,
120120
}));
121-
121+
122122
const StyledSelect = styled(Select)({
123123
minWidth: 80,
124124
fontSize: '.75rem',
@@ -128,7 +128,6 @@ const BarGraphComparisonActions = (props: BarGraphComparisonAction) => {
128128
color: 'grey',
129129
height: 30,
130130
});
131-
132131

133132
const handleSeriesChange = (event) => {
134133
if (!event) return;
@@ -184,7 +183,6 @@ const BarGraphComparisonActions = (props: BarGraphComparisonAction) => {
184183
style={{ color: 'white' }}
185184
labelId='simple-select-outlined-label'
186185
id='simple-select-outlined'
187-
188186
value={series}
189187
onChange={handleSeriesChange}
190188
>
@@ -205,7 +203,6 @@ const BarGraphComparisonActions = (props: BarGraphComparisonAction) => {
205203
style={{ color: 'white' }}
206204
labelId='snapshot-select'
207205
id='snapshot-select'
208-
209206
value={action} // snapshots
210207
onChange={handleActionChange}
211208
>

src/app/components/theme.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { createTheme } from '@mui/material/styles';
2+
const theme = createTheme({
3+
palette: {
4+
primary: {
5+
main: '#556cd4',
6+
},
7+
},
8+
components: {
9+
// Name of the component
10+
MuiButton: {
11+
styleOverrides: {
12+
// Name of the slot
13+
root: {
14+
// Some CSS
15+
fontSize: '0.8rem',
16+
letterSpacing: '0.2rem',
17+
lineHeight: '0.8rem',
18+
},
19+
},
20+
},
21+
},
22+
});
23+
24+
export default theme;

0 commit comments

Comments
 (0)