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

refactor(text)!: fully remove spacing and text passage variants #1492

Merged
merged 16 commits into from
Feb 10, 2023

Conversation

jinlee93
Copy link
Contributor

@jinlee93 jinlee93 commented Feb 9, 2023

[EDS-837]

Summary:

  • with preflight, can now remove the spacing and as="div" text passage variants
  • replaced the spacing provided with TW utility classes
    • text passage variant used <LayoutLinelengthContainer> which just applied max width of 36 rem, replaced with className max-w-xl

Test Plan:

@jinlee93 jinlee93 requested a review from a team February 9, 2023 21:42
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #1492 (a878af3) into jlee/twPreflight (18ac7b7) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

@@                 Coverage Diff                  @@
##           jlee/twPreflight    #1492      +/-   ##
====================================================
- Coverage             91.99%   91.89%   -0.11%     
====================================================
  Files                   272      272              
  Lines                  4136     4121      -15     
  Branches                727      722       -5     
====================================================
- Hits                   3805     3787      -18     
- Misses                  329      332       +3     
  Partials                  2        2              
Impacted Files Coverage Δ
src/components/DragDrop/DragDrop.stories.tsx 69.23% <ø> (ø)
src/components/FieldNote/FieldNote.stories.tsx 100.00% <ø> (ø)
src/components/Modal/Modal.stories.tsx 78.78% <ø> (ø)
src/components/PageHeader/PageHeader.stories.tsx 100.00% <ø> (ø)
src/components/Section/Section.stories.tsx 100.00% <ø> (ø)
src/components/Text/Text.stories.tsx 79.16% <ø> (-6.55%) ⬇️
src/components/Tabs/Tabs.stories.tsx 66.66% <100.00%> (+2.38%) ⬆️
src/components/Text/Text.tsx 100.00% <100.00%> (ø)
src/components/TimelineNav/TimelineNav.stories.tsx 100.00% <100.00%> (ø)
...tLinelengthContainer/LayoutLinelengthContainer.tsx 44.44% <0.00%> (-55.56%) ⬇️
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@booc0mtaco
Copy link
Contributor

@jinlee93 is merging this one blocked by #1490 ?

@jinlee93
Copy link
Contributor Author

jinlee93 commented Feb 9, 2023

@jinlee93 is merging this one blocked by #1490 ?

Yup, the PR target is that feature branch, so once that one lands, this one will auto-target next

@booc0mtaco
Copy link
Contributor

@jinlee93 is merging this one blocked by #1490 ?

Yup, the PR target is that feature branch, so once that one lands, this one will auto-target next

Oh i see, thx

<Text as="div" className="!mb-8">
<p>There are no more available projects to create your course plan</p>
<Text className="mb-8 max-w-xl">
There are no more available projects to create your course plan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of the Cookbook RFC work, we will review such stories and make the text and such more generic (and use that FPO block)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super down for that

src/components/FieldNote/FieldNote.stories.tsx Outdated Show resolved Hide resolved
src/components/Text/Text.module.css Show resolved Hide resolved
src/components/Text/Text.module.css Show resolved Hide resolved
src/components/Text/Text.tsx Outdated Show resolved Hide resolved
@jinlee93 jinlee93 force-pushed the jlee/removeTextVariants branch from 65c35a4 to a878af3 Compare February 10, 2023 18:29
Copy link
Contributor

@booc0mtaco booc0mtaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will review the combined ticket once this one is merged in to the preflight stuff

Base automatically changed from jlee/twPreflight to next February 10, 2023 21:34
@jinlee93 jinlee93 merged commit 07c4406 into next Feb 10, 2023
@jinlee93 jinlee93 deleted the jlee/removeTextVariants branch February 10, 2023 21:35
@jinlee93 jinlee93 mentioned this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants