Skip to content

Commit c065214

Browse files
authored
Merge pull request #20 from lind-tania/reactime7
color style of switch button - changed
2 parents e1c9e6e + 39acc31 commit c065214

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/app/components/PerformanceVisx.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import RenderingFrequency from './RenderingFrequency';
44
import FormControlLabel from '@material-ui/core/FormControlLabel';
55
import Switch from '@material-ui/core/Switch';
66
import BarGraph from './BarGraph';
7+
78
/* NOTES
89
Issue - Not fully compatible with recoil apps. Reference the recoil-todo-test.
910
Barstacks display inconsistently...however, almost always displays upon initial test app load or
@@ -98,7 +99,7 @@ const PerformanceVisx = (props: BarStackProps) => {
9899
}
99100
// filter and structure incoming data for VISX
100101
const data = getPerfMetrics(snapshots, getSnapshotIds(hierarchy));
101-
const colorSlider = "#ff6569"
102+
102103
// style={{ position: 'relative' }}
103104
// if performance tab is too small it will not return VISX component
104105
return (

src/app/styles/components/_performanceVisx.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@
22
display: flex;
33
justify-content: center;
44
}
5+
6+
.MuiSwitch-colorPrimary.Mui-checked {
7+
color: #62d6fb !important;
8+
}
9+
10+
.MuiSwitch-switchBase {
11+
color: #ff6569 !important;
12+
}
13+
14+
.MuiSwitch-track {
15+
background-color: #e7e7e7 !important;
16+
}

0 commit comments

Comments
 (0)