-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Polish Sign in to your account joy demo #37498
Conversation
8c75492
to
1e7cbaf
Compare
@@ -40,6 +40,7 @@ function ColorSchemeToggle({ onClick, ...props }: IconButtonProps) { | |||
size="sm" | |||
variant="plain" | |||
color="neutral" | |||
aria-label="toggle light/dark mode" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Typography component="h2" fontSize="xl2" fontWeight="lg"> | ||
Welcome back | ||
<Typography component="h1" fontSize="xl2" fontWeight="lg"> | ||
Sign in to your account | ||
</Typography> | ||
<Typography level="body2" sx={{ my: 1, mb: 3 }}> | ||
Let's get started! Please enter your details. | ||
Welcome back | ||
</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't understand the previous wording.
@@ -234,10 +235,10 @@ export default function JoySignInSideTemplate() { | |||
backgroundPosition: 'center', | |||
backgroundRepeat: 'no-repeat', | |||
backgroundImage: | |||
'url(https://images.unsplash.com/photo-1527181152855-fc03fc7949c8)', | |||
'url(https://images.unsplash.com/photo-1527181152855-fc03fc7949c8?auto=format&w=1000&dpr=2)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Input placeholder="Enter your email" type="email" name="email" /> | ||
<Input type="email" name="email" /> | ||
</FormControl> | ||
<FormControl required> | ||
<FormLabel>Password</FormLabel> | ||
<Input placeholder="•••••••" type="password" name="password" /> | ||
<Input type="password" name="password" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These placeholders feel confusing. I can't find a serious benchmark that has them. (Stripe, Figma). I suspect it's because it can be confused with the value being already filled (at least how it feels on my end.
Netlify deploy previewhttps://deploy-preview-37498--material-ui.netlify.app/ Bundle size report |
Something is broken with: <CssVarsProvider
defaultMode="dark"
disableTransitionOnChange
theme={customTheme}
> it flashes between the light and dark mode when I load the page. It can be reproduced in https://pagespeed.web.dev/analysis/https-deploy-preview-37498--material-ui-netlify-app-joy-ui-getting-started-templates-sign-in-side/x9knl6jsq2?form_factor=mobile ![]() A single render would likely already improve the lighthouse performance score. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvement!
@siriwatknp Anyone idea on what's going on with #37498 (comment)? This makes the template not truly usable in production (the most exigent users won't, e.g. I would either fix this or not use it if I was a user, 49/100: no thanks, let's try the next UI library). |
Since the templates live in the structure of the docs, I don't think it is fair to run the lighthouse against them. The page is not 100% Joy UI, it includes MUI branding theme at the top and that's a separate issue to fix. FYI, Joy UI has a lot of room for performance improvement but it requires discussion about the approach we want to go with. |
This is because the I have changed |
@siriwatknp My expectation is that developer will run it, and not care what's the context, only remember that score is X.
The lighthouse score is clearly better: https://pagespeed.web.dev/analysis/https-deploy-preview-37498--material-ui-netlify-app-joy-ui-getting-started-templates-sign-in-side/k0gtkyl01a?form_factor=mobile. Not almost 100% like https://www.builder.io/ has on a heavy page, but a step better 👍: ![]()
This is broken for me, in a different way. The different templates don't handle correctly when const { mode, setMode } = useColorScheme(); Some template displays two logos, others make you press the button twice: system (light) => light => dark. ![]() I have reverted the last commit. I think it goes in the right direction, only it introduce regressions, I would like to merge these changes: one step at a time.
Oh I see, very interesting. A few thoughts:
|
This reverts commit b66c2fe.
Initially, I wanted to fix https://app.ahrefs.com/site-audit/3524616/67/data-explorer?columns=pageRating%2Curl%2Ctraffic%2ChttpCode%2Cdepth%2Ch1%2Ch1Length%2CnrH1%2Ccompliant&filterId=e29b87ac6311cffd6273e3758dd92cd7&issueId=838c947a-001a-11e8-823b-001e67ed4656
Turns out, there is more we could do.
Preview: https://deploy-preview-37498--material-ui.netlify.app/joy-ui/getting-started/templates/sign-in-side/