forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Joy] Miscellaneous fixes (mui#35847)
- Loading branch information
1 parent
e99c91b
commit b9423b6
Showing
7 changed files
with
102 additions
and
10 deletions.
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
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
16 changes: 16 additions & 0 deletions
16
test/regressions/fixtures/CircularProgressJoy/CircularProgressFlexItem.js
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,16 @@ | ||
import * as React from 'react'; | ||
import { CssVarsProvider } from '@mui/joy/styles'; | ||
import Box from '@mui/joy/Box'; | ||
import CircularProgress from '@mui/joy/CircularProgress'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function CircularProgressFlexItem() { | ||
return ( | ||
<CssVarsProvider> | ||
<Box sx={{ display: 'flex', width: 200, gap: 2 }}> | ||
<CircularProgress determinate value={50} /> | ||
<Typography>Hello World, this is a very long sentence.</Typography> | ||
</Box> | ||
</CssVarsProvider> | ||
); | ||
} |
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,18 @@ | ||
import * as React from 'react'; | ||
import { CssVarsProvider } from '@mui/joy/styles'; | ||
import Box from '@mui/joy/Box'; | ||
import Select from '@mui/joy/Select'; | ||
import Option from '@mui/joy/Option'; | ||
|
||
export default function ListboxMinWidth() { | ||
return ( | ||
<CssVarsProvider> | ||
<Box sx={{ display: 'flex' }}> | ||
<Select defaultListboxOpen placeholder="None"> | ||
<Option value="short">Short option</Option> | ||
<Option value="long">A very long option</Option> | ||
</Select> | ||
</Box> | ||
</CssVarsProvider> | ||
); | ||
} |
42 changes: 42 additions & 0 deletions
42
test/regressions/fixtures/TypographyJoy/DecoratorAlignItemsStart.js
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,42 @@ | ||
import * as React from 'react'; | ||
import { CssVarsProvider } from '@mui/joy/styles'; | ||
import Box from '@mui/joy/Box'; | ||
import Typography from '@mui/joy/Typography'; | ||
import Link from '@mui/joy/Link'; | ||
|
||
export default function DecoratorAlignItemsStart() { | ||
return ( | ||
<CssVarsProvider> | ||
<Typography startDecorator="✅" alignItems="flex-start" sx={{ width: 160 }}> | ||
Hello World, this is a very long sentence. | ||
</Typography> | ||
<Typography | ||
startDecorator={ | ||
<Box | ||
component="span" | ||
sx={{ bgcolor: 'tomato', width: '1.25em', height: '1.25em', borderRadius: '50%' }} | ||
/> | ||
} | ||
alignItems="flex-start" | ||
sx={{ width: 160 }} | ||
> | ||
Hello World, this is a very long sentence. | ||
</Typography> | ||
<Link href="/" startDecorator="✅" sx={{ width: 160, alignItems: 'flex-start' }}> | ||
Hello World, this is a very long sentence. | ||
</Link> | ||
<Link | ||
href="/" | ||
startDecorator={ | ||
<Box | ||
component="span" | ||
sx={{ bgcolor: 'tomato', width: '1.25em', height: '1.25em', borderRadius: '50%' }} | ||
/> | ||
} | ||
sx={{ width: 160, alignItems: 'flex-start' }} | ||
> | ||
Hello World, this is a very long sentence. | ||
</Link> | ||
</CssVarsProvider> | ||
); | ||
} |