-
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
Replacing deprecated components and fixing prop errors #19745
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. |
@@ -63,7 +63,6 @@ export default function FormField({ | |||
<Text | |||
tag="label" | |||
htmlFor={id} | |||
html |
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.
Fixes incorrect prop being passed to Text component
/** | ||
* 2px | ||
*/ | ||
XS = 'xs', | ||
/** | ||
* 4px | ||
*/ | ||
SM = 'sm', | ||
/** | ||
* 6px | ||
*/ | ||
MD = 'md', | ||
/** | ||
* 8px | ||
*/ | ||
LG = 'lg', | ||
/** | ||
* 12px | ||
*/ | ||
XL = 'xl', | ||
/** | ||
* 0 | ||
*/ | ||
none = 'none', | ||
/** | ||
* 9999px | ||
*/ | ||
pill = 'pill', | ||
/** | ||
* 50% | ||
*/ |
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.
|
||
@include screen-sm-min { | ||
margin-inline-end: 43px; | ||
} | ||
} |
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.
Removing unused CSS
import Box from '../../../components/ui/box'; | ||
import Button from '../../../components/ui/button'; |
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.
Replacing deprecated components
</Box> | ||
</div> | ||
</Box> | ||
); |
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.
Reduces a lot of HTML nesting
Builds ready [01acf6c]
Page Load Metrics (1705 ± 57 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #19745 +/- ##
========================================
Coverage 69.83% 69.83%
========================================
Files 980 980
Lines 36886 36886
Branches 9890 9890
========================================
Hits 25757 25757
Misses 11129 11129
|
Explanation
Some prop type errors were introduced with some of the replacing of deprecated components. This PR replaces some deprecated components, removes the incorrect props and fixes some props being pass down to the html element in form-filed.js
Screenshots/Screencaps
Before
before.mov
After
after.mov
Manual Testing Steps
SecureYourWallet
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.