-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Replace typography components with Text #7530
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
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
6d346e7
Replace typography components with new Text component
sam-b-rose ac6c400
Fix tests with replaced Text components
sam-b-rose 7f3c51b
Add changeset
sam-b-rose e4b093d
Update polaris-react/src/components/Badge/tests/Badge.test.tsx
laurkim 30d969f
Revert "Replace typography components with new Text component"
sam-b-rose 0b1555d
Replace typography components with new Text component
sam-b-rose 6325a53
Fix EmptyState typography tests
sam-b-rose 866f1c9
Revert "Replace typography components with new Text component"
laurkim 208ccfe
Replace typography components with new Text component
laurkim 951cdd3
Fix variant mapping for Card.Header and Card.Section tests
laurkim 316b1bd
Revert changes to Caption and DisplayText tests
laurkim 4f9025a
Update references to `text-style-body` mixin with Text bodyMd variant
laurkim 534fbfa
Update DropZone/Tabs tests
laurkim 7267520
Remove unused mixins
laurkim 5c426ce
Update references to `text-style-body` mixin
laurkim 8dcde61
Update references to `text-style-caption` mixin
laurkim acc0dc2
[Text] Add support for `text-inverse` type for `color` prop
laurkim 689d4d7
Update changeset
laurkim 7958f56
Update references to `text-style-heading` mixin
laurkim b30b2dd
Update references to `text-style-subheading` mixin
laurkim 95a9a3f
Update references to `text-emphasis-subdued` mixin
laurkim fc87762
Update references to `text-emphasis-strong` mixin
laurkim be5e701
Update Avatar stories with examples for initials and different sizes
laurkim 06a5646
Add manual UI updates to `ActionList`
laurkim 0fb7db5
Add manual UI updates to `Card`
laurkim 3af820e
Add manual UI updates to `Toast`
laurkim 9b51fce
Add manual UI updates to `DescriptionList`
laurkim 6d7a9f0
Add manual UI updates to `Select` and `TextField`
laurkim b528de7
Update references to `text-style-button` mixin
laurkim e973039
Update references to `text-style-button-large` mixin
laurkim 52fbc12
Add manual UI updates to `OptionList`
laurkim 3a1df3f
Update references to `nav-item-text-attributes` mixin
laurkim 76ebb11
Add manual UI updates to `Page`
laurkim dd69c56
Add manual UI updates to `Badge`
laurkim 534cb08
Update changeset with breaking change on `Badge`
laurkim f0e758a
Add back support for `size` on `Badge` to hold off on next major release
laurkim 8c046ac
Fix padding around actions in `ActionList`
laurkim 2836b3b
Adjust spacing on sections and actions in `ActionList`
laurkim a8a3b3e
Fix lint failure on `ActionList`
laurkim 28bcf09
Remove bottom border on `ActionList` section without title
laurkim dfd1f40
Update Card custom react node story to use Text component
laurkim 2611432
Update FullscreenBar story to use Text component
laurkim ab9bba1
Update Popover searchable listbox story to use Text component
laurkim 066a030
Update reference to `text-style-input` mixin in `FooterHelp`
laurkim 203538f
Update changeset
laurkim 0c228a2
Update conditional color on `Text` in `Filters`
laurkim 88f3bee
Deprecate `size` prop on `Badge`
laurkim 02d07b2
Update ternary logic for `Box borderBlockStart` in `OptionList`
laurkim 725b03a
Update `DualThumb` class to use `first-child` selector
laurkim 074e846
Fix formatting for Text props in `Filters`
laurkim c97bb81
Update `SingleThumb` class to use `first-child` selector
laurkim ce058fa
Remove test styles from `Select`
laurkim 69c5c8e
Merge branch 'main' into replace-typography-components-with-text
alex-page File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@shopify/polaris': patch | ||
| --- | ||
|
|
||
| Replaced all typography components with the new `Text` component. | ||
| Added support for `text-inverse` color type on `Text`. | ||
| Removed references to the following mixins to use the new `Text` or tokens directly in classes: `text-style-body`, `text-style-heading`, `text-style-subheading`, `text-style-caption`, `text-style-button`, `text-style-button-large`, `text-emphasis-subdued`, `text-emphasis-strong`, `nav-item-text-attributes`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.