-
Notifications
You must be signed in to change notification settings - Fork 52
fix(text): change the font-weight of bold text #945
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
Conversation
🦋 Changeset detectedLatest commit: 1f0e2d1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
Codecov ReportBase: 71.15% // Head: 71.15% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## next-v1 #945 +/- ##
========================================
Coverage 71.15% 71.15%
========================================
Files 208 208
Lines 2961 2961
Branches 821 821
========================================
Hits 2107 2107
Misses 736 736
Partials 118 118
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Chromatic Report🚀 Congratulations! Your build was successful! |
sungik-choi
left a comment
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.
오픈소스 라이브러리 관점에서도 bold 는 font-weight: bold 인게 더 적절한 거 같습니다 👍
이전에 weight 값이 다르다고 이야기했던게 기억나는데, 해결되어서 좋네요
change the font-weight of bold text from 600 to 'bold'
ff52b48 to
1f0e2d1
Compare
|
Breaking change는 아니어서 첫 번째 커밋 메시지에서 Breaking change를 제거했습니다. |
change the font-weight of bold text from 600 to 'bold'
BREAKING CHANGE: every bold text is changed from 'font-weight:600' to 'font-weight: bold'
Self Checklist
Summary
Text 컴포넌트 prop으로
bold={true}를 받았을 때, font-weight를600이 아닌bold로 설정합니다.Details
Bezier상 Typography의 스펙이 변경되어 대응합니다.
대표 사용처인 채널톡 Desk 어플리케이션과 이 bezier-react storybook에선 다음 폰트 정의을 가져다 쓰고 있습니다.
https://cf.channel.io/asset/font/Inter/inter.css
이 css의 font-face를 보면
font-weight: 600을 지원하지 않습니다.그래서 실제로는, 이 storybook이나 데스크 사용처에서
font-weight: 600으로 설정된 텍스트들이 Inter-BoldItalic.woff2 (700에 해당하는 폰트) 로 그려집니다.(특정 font-weight가 존재하지 않으면 가까운 weight가 사용됩니다.)
즉, 기존에 beizer 스펙과 bezier-react Text component에 bold text는 semibold(600) 으로 정의되어 있었지만,
실제로 storybook이나 Desk 서비스에서는 700으로 렌더링 된 폰트를 보고 있었다는 겁니다.
그래서 bezier 스펙에서 bold text의 스펙을 semibold 에서 bold로 바꾸었고,
이에 따라 bezier-react의 Text 컴포넌트를 수정합니다.
사용처에서 변하는 부분
기존에 600으로 표시되던 텍스트들이 bold(700)으로 표시됩니다.
단, 기존 데스크 사용처는 변화가 없습니다.
References