-
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
Update Text import paths: /pages #20117
Update Text import paths: /pages #20117
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. |
Text, | ||
///: END:ONLY_INCLUDE_IN | ||
IconName, | ||
IconSize, | ||
} from '../../components/component-library'; | ||
///: BEGIN:ONLY_INCLUDE_IN(snaps) | ||
import { Text } from '../../components/component-library/text/deprecated'; |
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.
Making sure the import is still only included in snaps. This is the only other file in the codebase and it is outside of /pages
but thought it would be ok to include in this PR
Builds ready [59cb054]
Page Load Metrics (1518 ± 53 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #20117 +/- ##
========================================
Coverage 69.34% 69.34%
========================================
Files 986 986
Lines 37299 37299
Branches 10011 10011
========================================
Hits 25864 25864
Misses 11435 11435
|
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.
YESSSSSS
Explanation
Currently, there are deprecated instances of the
Text
component that use the JavaScript version of theBox
component. This PR updates those deprecated import paths to the new component in theui/components/pages
folder as well as snapshots. There should be no visual or component API difference between the two. Just className changes which will touch many snapshotsSearching for path of the deprecated Text import paths returns no results 🥳
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.