Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fix switch name to reflect the color #35052

Merged
merged 10 commits into from Dec 28, 2022
Merged
4 changes: 2 additions & 2 deletions docs/data/material/components/switches/ColorSwitches.js
Expand Up @@ -3,7 +3,7 @@ import { alpha, styled } from '@mui/material/styles';
import { pink } from '@mui/material/colors';
import Switch from '@mui/material/Switch';

const GreenSwitch = styled(Switch)(({ theme }) => ({
const PinkSwitch = styled(Switch)(({ theme }) => ({
'& .MuiSwitch-switchBase.Mui-checked': {
color: pink[600],
'&:hover': {
Expand All @@ -24,7 +24,7 @@ export default function ColorSwitches() {
<Switch {...label} defaultChecked color="secondary" />
<Switch {...label} defaultChecked color="warning" />
<Switch {...label} defaultChecked color="default" />
<GreenSwitch {...label} defaultChecked />
<PinkSwitch {...label} defaultChecked />
</div>
);
}
4 changes: 2 additions & 2 deletions docs/data/material/components/switches/ColorSwitches.tsx
Expand Up @@ -3,7 +3,7 @@ import { alpha, styled } from '@mui/material/styles';
import { pink } from '@mui/material/colors';
import Switch from '@mui/material/Switch';

const GreenSwitch = styled(Switch)(({ theme }) => ({
const PinkSwitch = styled(Switch)(({ theme }) => ({
'& .MuiSwitch-switchBase.Mui-checked': {
color: pink[600],
'&:hover': {
Expand All @@ -24,7 +24,7 @@ export default function ColorSwitches() {
<Switch {...label} defaultChecked color="secondary" />
<Switch {...label} defaultChecked color="warning" />
<Switch {...label} defaultChecked color="default" />
<GreenSwitch {...label} defaultChecked />
<PinkSwitch {...label} defaultChecked />
</div>
);
}
Expand Up @@ -2,4 +2,5 @@
<Switch {...label} defaultChecked color="secondary" />
<Switch {...label} defaultChecked color="warning" />
<Switch {...label} defaultChecked color="default" />
<GreenSwitch {...label} defaultChecked />
<PinkSwitch {...label} defaultChecked />