-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[FormHelperText][material-next] Add FormHelperText component #39503
[FormHelperText][material-next] Add FormHelperText component #39503
Conversation
Netlify deploy previewhttps://deploy-preview-39503--material-ui.netlify.app/ @mui/material-next: parsed: +0.39% , gzip: +0.15% Bundle size reportDetails of bundle changes (Toolpad) |
e4f8b35
to
9477ae5
Compare
e78c767
to
9c1add0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
f36b5b9
to
e6c8d1d
Compare
78a7807
to
9949e22
Compare
9949e22
to
b21b3f5
Compare
6e93751
to
33828b4
Compare
@@ -67,7 +67,7 @@ export const FormLabelRoot = styled('label', { | |||
}, | |||
[`&.${formLabelClasses.disabled}`]: { | |||
color: | |||
'color-mix(in srgb, var(--md-comp-form-label-disabled-color), transparent calc(var(--md-comp-form-label-disabled-opacity) * 100%))', | |||
'color-mix(in srgb, var(--md-comp-form-label-disabled-color) calc(var(--md-comp-form-label-disabled-opacity) * 100%), transparent)', |
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.
The % was on the wrong color from before but it was hard to see until now 😅
marginLeft: 14, | ||
marginRight: 14, |
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.
14 is an off number to end up with considering the spacing, is this based on the spec?
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.
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've realigned everything 5f9105d
(this is actually off in v5 as well, the MD2 spec also specifies 16px padding)
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.
Looks good, left one question, but it's likely me being paranoid :D
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.
LGTM 🚀
Continues #38374
Closes #39513
This PR adds
FormHelperText
to material-next, I've updated the/experiments
page again but also copied it to a sandbox 👇 for easier review ~Demo: https://codesandbox.io/s/https-github-com-mui-material-ui-pull-39503-5f4k8n?file=/src/App.tsx
Preview:
material-next-form-helper-text.mov