-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
cc. @gnapse and @Doist/frontend-product so you are aware |
@henningmu I suppose that this component could have been used for example in https://github.com/Doist/todoist-web/pull/2983. |
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.
🎉
--reactist-font-size-small: 12px; | ||
--reactist-font-size-normal: 14px; | ||
--reactist-font-size-large: 16px; | ||
--reactist-font-size-caption: 12px; |
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.
I love these purpose-based names ❤️
c7f9be3
to
976df36
Compare
Not until we can get rid of IE11 over there since these make use of CSS variables 👀 |
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: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.PR Checklist
npm run validate
and made sure no errors / warnings were shownCHANGELOG.md
package.json
andpackage-lock.json
(npm --no-git-tag-version version <major|minor|patch>
) refnpm run build-all
)Versioning
v9.2.0-beta.10