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

[joy-ui][docs] Remove wrong CSS prop from the Sign-in-side template #41383

Merged
merged 8 commits into from
Mar 8, 2024
Prev Previous commit
Next Next commit
[joy-ui][docs] Refactor FormLabel asterisks visibility
There's no need for an extra import, we can use the class name directly to target all asterisk slots
withing the form container.
  • Loading branch information
cipherlogs committed Mar 6, 2024
commit d9ff4a3981b6292af1d594270805a1359054f11d
4 changes: 2 additions & 2 deletions docs/data/joy/getting-started/templates/sign-in-side/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@mui/joy/Button';
import Checkbox from '@mui/joy/Checkbox';
import Divider from '@mui/joy/Divider';
import FormControl from '@mui/joy/FormControl';
import FormLabel, { formLabelClasses } from '@mui/joy/FormLabel';
import FormLabel from '@mui/joy/FormLabel';
import IconButton, { IconButtonProps } from '@mui/joy/IconButton';
import Link from '@mui/joy/Link';
import Input from '@mui/joy/Input';
Expand Down Expand Up @@ -130,7 +130,7 @@ export default function JoySignInSideTemplate() {
flexDirection: 'column',
gap: 2,
},
[`& .${formLabelClasses.asterisk}`]: {
[`& .MuiFormLabel-asterisk`]: {
visibility: 'hidden',
},
}}
Expand Down
Loading