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

Updating Label component #17731

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Updating Label component #17731

merged 1 commit into from
Feb 15, 2023

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Feb 11, 2023

Explanation

Updating the Label component based on audit and insight report.

Screenshot 2023-02-10 at 5 29 46 PM

Screenshots/Screencaps

Before

before.mov

After

after.mov

Manual Testing Steps

  • Go to the latest build of storybook in this PR
  • Search Label component
  • See Disabled story and docs have been removed
  • Go to FormTextField story
  • Turn on the disabled control
  • See that there is still disabled styles for the Label

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

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.

@github-actions
Copy link
Contributor

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.

@georgewrmarshall georgewrmarshall self-assigned this Feb 11, 2023
@georgewrmarshall georgewrmarshall added area-UI Relating to the user interface. team-design-system All issues relating to design system in Extension IA/NAV labels Feb 11, 2023
className={classnames(
'mm-form-text-field__help-text',
helpTextProps?.className,
)}
error={error}
marginTop={1}
{...helpTextProps}
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Feb 11, 2023

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;
}
}
}
Copy link
Contributor Author

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

@georgewrmarshall georgewrmarshall marked this pull request as ready for review February 11, 2023 01:39
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner February 11, 2023 01:39
@georgewrmarshall georgewrmarshall requested review from danjm, garrettbear and NidhiKJha and removed request for danjm February 11, 2023 01:39
@metamaskbot
Copy link
Collaborator

Builds ready [e2e2f65]
Page Load Metrics (1179 ± 109 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint892221112813
domContentLoaded93617001156224108
load95517001179227109
domInteractive93617001156224108

@brad-decker brad-decker merged commit a4f33ec into develop Feb 15, 2023
@brad-decker brad-decker deleted the fix/17730/update-label branch February 15, 2023 14:29
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-UI Relating to the user interface. team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update component: Label
5 participants