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

feat: Rename Text stack to align with Design library #513

Merged
merged 5 commits into from
May 7, 2021

Conversation

frankieyan
Copy link
Member

@frankieyan frankieyan commented May 6, 2021

Short description

This updates the Text component to align its size and weight stack with the Doist product library. This will allow us to identify font-size tokens easier when working with Figma:

image

Reference: https://twist.com/a/1585/ch/414345/t/2200903/c/65916995
Figma: https://www.figma.com/file/LYlWNzvhMDh907l07mPPQk/Product-Web?node-id=239%3A26

Note that our stories have their font-stack set to Arial, which doesn't seem to support the semibold/500 font-weight. In our products, they should look correct with the system fonts font-stack.

Design Before After
image image image

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)
  • Executed npm run validate and made sure no errors / warnings were shown
  • Described changes in CHANGELOG.md
  • Bumped version in package.json and package-lock.json (npm --no-git-tag-version version <major|minor|patch>) ref
  • Updated all static build artifacts (npm run build-all)

Versioning

v9.2.0-beta.10

@frankieyan frankieyan requested review from a team and craigcarlyle and removed request for a team May 6, 2021 09:11
@frankieyan frankieyan self-assigned this May 6, 2021
@frankieyan
Copy link
Member Author

cc. @gnapse and @Doist/frontend-product so you are aware

@pedroalves0
Copy link
Member

pedroalves0 commented May 6, 2021

@henningmu I suppose that this component could have been used for example in https://github.com/Doist/todoist-web/pull/2983.

Copy link
Contributor

@craigcarlyle craigcarlyle left a comment

Choose a reason for hiding this comment

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

🎉

--reactist-font-size-small: 12px;
--reactist-font-size-normal: 14px;
--reactist-font-size-large: 16px;
--reactist-font-size-caption: 12px;
Copy link
Contributor

Choose a reason for hiding this comment

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

I love these purpose-based names ❤️

@frankieyan frankieyan force-pushed the frankie/update-text-stack branch from c7f9be3 to 976df36 Compare May 7, 2021 08:08
@frankieyan
Copy link
Member Author

@henningmu I suppose that this component could have been used for example in Doist/todoist-web#2983.

Not until we can get rid of IE11 over there since these make use of CSS variables 👀

@frankieyan frankieyan merged commit b1f8125 into beta May 7, 2021
@frankieyan frankieyan deleted the frankie/update-text-stack branch May 7, 2021 08:16
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.

3 participants