-
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: /institutional #20064
Update Text import paths: /institutional #20064
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. |
849754e
to
bdcb697
Compare
import { Box } from '../../component-library'; | ||
import { Text } from '../../component-library/text/deprecated'; | ||
import { Box, Text } from '../../component-library'; | ||
|
||
import { | ||
TextColor, | ||
TextVariant, |
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.
justifyContent={JustifyContent.spaceBetween} | ||
> | ||
<Box | ||
display={DISPLAY.FLEX} | ||
display={Display.Flex} | ||
justifyContent={JustifyContent.flexStart} | ||
alignItems={AlignItems.center} | ||
> |
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.
Builds ready [bdcb697]
Page Load Metrics (1675 ± 58 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #20064 +/- ##
========================================
Coverage 69.42% 69.42%
========================================
Files 990 990
Lines 37418 37418
Branches 10039 10039
========================================
Hits 25976 25976
Misses 11442 11442
|
display={DISPLAY.FLEX} | ||
flexDirection={FLEX_DIRECTION.ROW} | ||
display={Display.Flex} | ||
flexDirection={FlexDirection.Row} | ||
justifyContent={JustifyContent.center} | ||
> | ||
<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.
import { Label } from '../../component-library'; | ||
import { Text } from '../../component-library/text/deprecated'; | ||
import { Label, Text } from '../../component-library'; | ||
|
||
import { | ||
TextTransform, | ||
BackgroundColor, |
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.
} from '../../component-library'; | ||
import { Text } from '../../component-library/text/deprecated'; | ||
|
||
const InteractiveReplacementTokenNotification = ({ isVisible }) => { | ||
const t = useI18nContext(); |
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.
@@ -2,8 +2,7 @@ import React from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import Dropdown from '../../ui/dropdown'; | |||
import { Color } from '../../../helpers/constants/design-system'; | |||
import { Box } from '../../component-library'; | |||
import { Text } from '../../component-library/text/deprecated'; | |||
import { Box, Text } from '../../component-library'; | |||
import { useI18nContext } from '../../../hooks/useI18nContext'; | |||
|
|||
const JwtDropdown = (props) => { |
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.
@@ -8,8 +8,7 @@ import { | |||
FlexDirection, | |||
TextVariant, | |||
} from '../../../helpers/constants/design-system'; | |||
import { Box, Button } from '../../component-library'; | |||
import { Text } from '../../component-library/text/deprecated'; | |||
import { Box, Button, Text } from '../../component-library'; | |||
import JwtDropdown from '../jwt-dropdown'; | |||
|
|||
const JwtUrlForm = (props) => { |
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.
import { Label } from '../../component-library'; | ||
import { Text } from '../../component-library/text/deprecated'; | ||
import Box from '../../ui/box'; | ||
import { Label, Box, Text } from '../../component-library'; | ||
|
||
const NoteToTrader = (props) => { | ||
const { placeholder, maxLength, onChange, noteText, labelText } = props; |
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.
justifyContent={JustifyContent.center} | ||
alignItems={AlignItems.center} | ||
padding={[1, 6]} | ||
backgroundColor={BackgroundColor.errorMuted} | ||
width={BLOCK_SIZES.FULL} | ||
width={BlockSize.Full} | ||
> | ||
<Icon | ||
name={IconName.Danger} |
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.
bdcb697
to
0ceb6a6
Compare
Builds ready [0ceb6a6]
Page Load Metrics (1598 ± 83 ms)
Bundle size diffs
|
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.
Thank you very much @georgewrmarshall, this is something we wanted to do in the near term. ✅ ✅ 🚢
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/institutional
folder as well as snapshotsScreenshots/Screencaps
I have added Before/After screencasts to ensure no visual regressions have occurred to components with some significant updates other than snapshot updates in the code comments
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.