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

Fix - Updates to Expressive text styles #1167

Merged
merged 8 commits into from
Dec 5, 2023
Merged

Conversation

chris-cedrone-cengage
Copy link
Collaborator

Issue: # 1156

What I did

  • Updated the Expressive text variant: font sizing, weights, and line-heights

Checklist

  • changeset has been added
  • Pull request description is descriptive
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • [N/A] I have added tests that prove my fix is effective or that my feature works

How to test

  • In Docs > Design > Typography, ensure the Expressive Body Text Styles are correct
  • In Docs > Design > Typography, ensure the Expressive Heading Text Styles are correct

Copy link

changeset-bot bot commented Nov 30, 2023

🦋 Changeset detected

Latest commit: 6059b80

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copy link
Contributor

packages/react-magma-dom/src/theme/magma.ts Outdated Show resolved Hide resolved
packages/react-magma-dom/src/theme/magma.ts Show resolved Hide resolved
.changeset/feat-expressiveText.md Outdated Show resolved Hide resolved
@@ -378,6 +378,8 @@ export const headingMediumStyles = props => css`
@media (min-width: ${props.theme.breakpoints.small}px) {
font-size: ${props.theme.typographyExpressiveVisualStyles.headingMedium
.desktop.fontSize};
font-weight: ${props.theme.typographyExpressiveVisualStyles.headingSmall
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be props.theme.typographyExpressiveVisualStyles.headingMedium.fontWeight?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually desktop and mobile differ for Medium in regards to font-weight, desktop needs 600 where mobile needs 500 which is currently configured here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@orion-cengage is it absolutely necessary for desktop and mobile to have different font weights?

Copy link
Contributor

Choose a reason for hiding this comment

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

I will verify with Marketing and report back.

Copy link
Contributor

Choose a reason for hiding this comment

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

Heard back from Marketing. Let's stick with semibold on all screens for Medium.

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

@orion-cengage orion-cengage self-requested a review December 4, 2023 15:07
Copy link
Contributor

@orion-cengage orion-cengage left a comment

Choose a reason for hiding this comment

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

  1. We no longer have to override the color of Body/Large under Expressive. It can just be our default font color.

  2. Need to update the em values on the docs page (/design-intro/typography/). The px values have changed but not the em values. Here are the correct values:

Desktop

  • H 2XL size 64/4 em, LH 84/5.25 em, medium
  • H XL size 48/3 em, LH 64/4 em, semibold
  • H L size 36/2.25 em, LH 48/3 em, semibold
  • H M size 28/1.75 em, LH 40/2.5 em, coming soon
  • H S size 24/1.5 em, LH 32/2 em, medium
  • H XS size 20/1.25 em, LH 32/2 em, medium
  • H 2XS size 18/1.125 em, LH 24/1.5 em, medium

Mobile

  • H 2XL size 48/3 em, LH 64/4 em, medium
  • H XL size 36/2.25 em, LH 48/3 em, semibold
  • H L size 28/1.75 em, LH 40/2.5 em, semibold
  • H M size 24/1.5 em, LH 32/2 em, coming soon
  • H S size 20/1.25 em, LH 32/2 em, medium
  • H XS size 18/1.125 em, LH 24/1.5 em, medium
  • H 2XS size 16/1 em, LH 24/1.5 em, medium

Copy link
Contributor

github-actions bot commented Dec 4, 2023

Copy link
Contributor

github-actions bot commented Dec 4, 2023

@silvalaura silvalaura linked an issue Dec 4, 2023 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented Dec 4, 2023

Copy link
Contributor

github-actions bot commented Dec 4, 2023

Copy link
Contributor

github-actions bot commented Dec 5, 2023

Copy link
Contributor

github-actions bot commented Dec 5, 2023

@silvalaura silvalaura merged commit 1fb88b6 into dev Dec 5, 2023
2 checks passed
@silvalaura silvalaura deleted the fix/expressiveTextUpdates branch December 5, 2023 20:42
silvalaura added a commit that referenced this pull request Jan 19, 2024
silvalaura added a commit that referenced this pull request Jan 22, 2024
silvalaura added a commit that referenced this pull request Jun 5, 2024
silvalaura added a commit that referenced this pull request Jun 18, 2024
silvalaura added a commit that referenced this pull request Jun 18, 2024
silvalaura added a commit that referenced this pull request Jun 20, 2024
silvalaura added a commit that referenced this pull request Aug 15, 2024
silvalaura added a commit that referenced this pull request Sep 18, 2024
silvalaura added a commit that referenced this pull request Sep 18, 2024
silvalaura added a commit that referenced this pull request Sep 18, 2024
silvalaura added a commit that referenced this pull request Sep 18, 2024
silvalaura added a commit that referenced this pull request Dec 16, 2024
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.

Update Expressive Text Styles
3 participants