-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs] Add theme.applyStyles
and migrate docs
#42498
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
Changes from 16 commits
4f8fc0f
6fddebc
418ee0c
9e61124
1a8b09a
346851e
4279553
f74cdbc
621caf4
32c35e0
36a10dd
0ab2456
9f022f5
189256b
76c8d8e
cd8e125
24ff08c
26c409f
ca3dab6
061556f
2d99cd2
f4cd253
9c9303c
2df6b9a
0d0b3e0
24e6634
d760fb5
e6e442e
09fab94
e92733b
6468411
eb882d6
5df784d
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 |
---|---|---|
|
@@ -18,10 +18,18 @@ export default function FlexRowRatio() { | |
sx={{ gap: 2, minWidth: 300 }} | ||
> | ||
<AspectRatio | ||
sx={{ | ||
flexBasis: flexBasis ? `${flexBasis}px` : undefined, | ||
overflow: 'auto', | ||
}} | ||
sx={[ | ||
{ | ||
overflow: 'auto', | ||
}, | ||
flexBasis | ||
? { | ||
flexBasis: `${flexBasis}px`, | ||
} | ||
: { | ||
flexBasis: null, | ||
}, | ||
]} | ||
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. Are all of these sx ternary stuff related to the PR's goal or should we keep it separate? Also, I'm curious why this approach is better than the previous one 🤔 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. Ideally, it can be a separate PR. It was updated due to the
It's compatible with Pigment CSS. If you don't mind, I can update the sx prop docs in this PR altogether. 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. Ah cool! I'm slightly sad as this syntax is way uglier than the previous one 😅 but it feels all right to update the docs in a dedicated PR. Maybe it's worth highlighting these things (why these ternaries were picked up and missing tasks) in the PR's description, though! |
||
> | ||
<img | ||
src="https://images.unsplash.com/photo-1502657877623-f66bf489d236?auto=format&fit=crop&w=800" | ||
|
Uh oh!
There was an error while loading. Please reload this page.