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
Make breakpoints use the token feature #39105
Conversation
Maybe |
CI failed. |
|
This comment was marked as resolved.
This comment was marked as resolved.
My bad. :) |
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.
So sorry, The owner think that this should be supported by adding some style token by ConfigProvider with theme. #39105 (comment)
https://ant.design/docs/react/customize-theme#customize-design-token
515c028
to
3d04fd1
Compare
Co-authored-by: Amumu <yoyo837@hotmail.com>
bc22667
to
a052c4b
Compare
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## feature #39105 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 556 556
Lines 9595 9602 +7
Branches 2714 2714
=========================================
+ Hits 9595 9602 +7
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. |
@@ -88,15 +83,6 @@ describe('Grid', () => { | |||
expect(asFragment().firstChild).toMatchSnapshot(); | |||
}); | |||
|
|||
it('ResponsiveObserve.unsubscribe should be called when unmounted', () => { |
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.
Do not remove directly which should replace with new test case.
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.
Do not remove existing test cases, add some new test cases for this feature directly.
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.
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.
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.
Let me handle this : )
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #32954
close #34197
close #19694
close #22359
💡 Background and solution
Screens are getting bigger, we need a new size to handle them. For example with 4k screens, you can differenciate an half-screen of a full-screen (so can't adapt the width f you app only for full-screen mode)
📝 Changelog
☑️ Self-Check before Merge
The decision has been made to use the new token system for the breakpoints
I have decided to remove
ResponsiveObserve.unsubscribe should be called when unmounted
test because now we use a hook, that isn't the same instance ofResponsiveObserver
that is shared between Row and the test, so we can't check the call on subscribe at this momentThanks