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
14 changes: 5 additions & 9 deletions docs/data/joy/getting-started/templates/sign-in-side/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,15 @@ export default function JoySignInSideTemplate() {
<GlobalStyles
styles={{
':root': {
'--Collapsed-breakpoint': '769px', // form will stretch when viewport is below `769px`
'--Cover-width': '50vw', // must be `vw` only
'--Form-maxWidth': '800px',
'--Transition-duration': '0.4s', // set to `none` to disable transition
},
}}
/>
<Box
sx={(theme) => ({
width:
'clamp(100vw - var(--Cover-width), (var(--Collapsed-breakpoint) - 100vw) * 999, 100vw)',
width: '100vw',
[theme.breakpoints.up(769)]: { width: '50vw' },
transition: 'width var(--Transition-duration)',
transitionDelay: 'calc(var(--Transition-duration) + 0.1s)',
position: 'relative',
Expand All @@ -95,9 +93,7 @@ export default function JoySignInSideTemplate() {
display: 'flex',
flexDirection: 'column',
minHeight: '100dvh',
width:
'clamp(var(--Form-maxWidth), (var(--Collapsed-breakpoint) - 100vw) * 999, 100%)',
maxWidth: '100%',
width: "100%",
px: 2,
}}
>
Expand All @@ -106,7 +102,6 @@ export default function JoySignInSideTemplate() {
sx={{
py: 3,
display: 'flex',
alignItems: 'left',
justifyContent: 'space-between',
}}
>
Expand Down Expand Up @@ -230,7 +225,8 @@ export default function JoySignInSideTemplate() {
right: 0,
top: 0,
bottom: 0,
left: 'clamp(0px, (100vw - var(--Collapsed-breakpoint)) * 999, 100vw - var(--Cover-width))',
left: 0,
[theme.breakpoints.up(769)]: { left: '50vw' },
transition:
'background-image var(--Transition-duration), left var(--Transition-duration) !important',
transitionDelay: 'calc(var(--Transition-duration) + 0.1s)',
Expand Down
Loading