-
Notifications
You must be signed in to change notification settings - Fork 48
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
Enhancement Text
component to support new typography token
#1820
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ba3e3c5
feat(text): migrate to scss
sungik-choi b17fb3f
refactor(token): rm unused typography type
sungik-choi 59dfa47
fix(text): fix nested style & storybook preview style
sungik-choi aadfc03
test(text): update story
sungik-choi 5328f1a
fix(text): add missing style
sungik-choi 6603f64
refactor(text.types): rm duplicated element type
sungik-choi 66bc2df
docs(box/text): add jsdoc
sungik-choi ac93611
chore(changeset): add changeset
sungik-choi 4826717
style(text): rm empty line
sungik-choi c884d7c
feat(text): add align prop
sungik-choi d003509
Merge branch 'alpha' into feat/text
sungik-choi b941935
refactor(banner): fix typo
sungik-choi bb1df7e
docs(text): fix jsdoc
sungik-choi bdb2c03
test(text): update test cases
sungik-choi 067a7be
feat(foundation): correctly narrowing SemanticNames type
sungik-choi f504477
refactor: migrating typo changes in text props
sungik-choi a8bd96f
feat: migrating type changes in text props
sungik-choi 51a7a10
test: update snapshot
sungik-choi e8a6f87
test: fix Text-related test cases
sungik-choi ce5c3d4
refactor(bezier-figma-plugin): migrate typo
sungik-choi f7e6992
Merge branch 'alpha' into feat/text
sungik-choi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
"@channel.io/bezier-react": major | ||
--- | ||
|
||
`typo` prop of `Text` component is changed to a string literal. Please migrate it like below. With the removal of the styled-component from bezier-react, CSS interpolation is no longer available. | ||
|
||
```tsx | ||
/* AS-IS */ | ||
<Text typo={Typography.Size11} /> | ||
<Text typo={Typography.Size12} /> | ||
<Text typo={Typography.Size13} /> | ||
<Text typo={Typography.Size14} /> | ||
<Text typo={Typography.Size15} /> | ||
<Text typo={Typography.Size16} /> | ||
<Text typo={Typography.Size17} /> | ||
<Text typo={Typography.Size18} /> | ||
<Text typo={Typography.Size22} /> | ||
<Text typo={Typography.Size24} /> | ||
<Text typo={Typography.Size30} /> | ||
<Text typo={Typography.Size36} /> | ||
|
||
/* TO-BE */ | ||
<Text typo="11" /> | ||
<Text typo="12" /> | ||
<Text typo="13" /> | ||
<Text typo="14" /> | ||
<Text typo="15" /> | ||
<Text typo="16" /> | ||
<Text typo="17" /> | ||
<Text typo="18" /> | ||
<Text typo="22" /> | ||
<Text typo="24" /> | ||
<Text typo="30" /> | ||
<Text typo="36" /> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@channel.io/bezier-react": minor | ||
--- | ||
|
||
Add `align` prop to `Text` component. This prop is used to set horizontal alignment of text. | ||
|
||
```tsx | ||
<Text align="left" /> | ||
<Text align="center" /> | ||
<Text align="right" /> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Storybook에서 스타일시트가 잘못 적용되고 있어서, cascade layer의 순서가 뒤섞이는 문제가 있었습니다. style import를 Preview 파일로 이동하니 해결됐습니다.