-
Notifications
You must be signed in to change notification settings - Fork 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
Updating Label component #17731
Updating Label component #17731
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
className={classnames( | ||
'mm-form-text-field__help-text', | ||
helpTextProps?.className, | ||
)} | ||
error={error} | ||
marginTop={1} | ||
{...helpTextProps} |
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.
Ensures the default className isn't overridden. Have added test to check
.mm-form-text-field__help-text { | ||
opacity: var(--help-text-opacity-disabled); | ||
opacity: var(--text-opacity-disabled); | ||
cursor: default; | ||
} | ||
} | ||
} |
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.
Need to move disabled styles to FormTextField
Builds ready [e2e2f65]
Page Load Metrics (1179 ± 109 ms)
|
Explanation
Updating the
Label
component based on audit and insight report.Removed
disabled
onLabel
componentRemoved
disabled
story and docsUpdated
FormTextField
with new method of disabled stylesAdd more tests to check that classNames still work for
HelpText
andLabel
insideFormTextField
https://www.figma.com/file/aGW8sk6X6Jf9ac0MRMD4kX/TextField-Audit?node-id=282%3A22&t=uXWtYPu6jWtwEwXT-1
Screenshots/Screencaps
Before
before.mov
After
after.mov
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.