-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
e52c45e
commit 58d14a6
Showing
4 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as React from 'react'; | ||
import Stepper from '@mui/material/Stepper'; | ||
import Step from '@mui/material/Step'; | ||
import StepLabel from '@mui/material/StepLabel'; | ||
|
||
function TestIcon() { | ||
return <div style={{ border: '1px solid red' }}>should not shrink</div>; | ||
} | ||
|
||
const steps = ['Step 1', 'Step 2']; | ||
|
||
export default function CustomizedSteppers() { | ||
return ( | ||
<Stepper sx={{ width: 200 }}> | ||
{steps.map((label) => ( | ||
<Step key={label}> | ||
<StepLabel StepIconComponent={TestIcon} sx={{ width: '1px' }}> | ||
{label} | ||
</StepLabel> | ||
</Step> | ||
))} | ||
</Stepper> | ||
); | ||
} |
16 changes: 16 additions & 0 deletions
16
test/regressions/fixtures/TextField/ConstrainedTextField.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 TextField from '@mui/material/TextField'; | ||
|
||
// TextField shouldn't overflow the red bordered container | ||
export default function ConstrainedTextField() { | ||
return ( | ||
<div | ||
style={{ | ||
width: 100, | ||
border: '1px solid red', | ||
}} | ||
> | ||
<TextField label="Outlined" variant="outlined" /> | ||
</div> | ||
); | ||
} |