-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: use styled-system v5 #422
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,34 +57,14 @@ export interface BreakpointsType { | |
* 1200px | ||
*/ | ||
3: string; | ||
/** | ||
* 576px | ||
*/ | ||
sm: string; | ||
/** | ||
* 768px | ||
*/ | ||
md: string; | ||
/** | ||
* 992px | ||
*/ | ||
lg: string; | ||
/** | ||
* 1200px | ||
*/ | ||
xl: string; | ||
} | ||
|
||
const breakpoints: BreakpointsType = { | ||
0: toRem(576), | ||
1: toRem(768), | ||
2: toRem(992), | ||
3: toRem(1200), | ||
sm: toRem(576), | ||
md: toRem(768), | ||
lg: toRem(992), | ||
xl: toRem(1200), | ||
}; | ||
const breakpoints: BreakpointsType = [ | ||
toRem(576), | ||
toRem(768), | ||
toRem(992), | ||
toRem(1200), | ||
]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/styled-system/styled-system/blob/master/packages/core/src/index.js#L62 因為 v5 新增了 cache breakpoints 的功能,但他們實作上只支援 array There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 這樣對tailor ui 來說是 breaking change QQ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 但事實上我們沒有用這個功能 XD |
||
|
||
export interface SpaceType { | ||
/** | ||
|
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.
改成使用全域的 UIProvider 避免多個 Provider 打架