-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[theme] Add support to override breakpoints #20901
Conversation
Details of bundle changes.Comparing: 18035fd...d204d66 Details of page changes
|
This reverts commit 5043ca9.
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.
Great idea!
Documentation for this would be really nice. I guess the way you use this is something like
interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
xxl: true; // adds the `xxl` breakpoint
}
?
A real-world example for customizing breakpoints added to docs/src/pages/customization/breakpoints/breakpoints.md would go a long way.
Or do we already have an example in our docs @oliviertassinari?
@eps1lon 💯 for a new demo. It's related to #11649 and https://trello.com/c/JlTEy79C/1376-simplify-breakpoint-structure. |
b8dd132
to
d204d66
Compare
@JasonHK Awesome! Appreciate the new documentation! |
This PR could potentially add override support to other string union type as well.
Usage
Remove a default breakpoint
Add a custom breakpoint
Fix #20292