Skip to content

Commit

Permalink
prefer style over sx in regression
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 10, 2021
1 parent 681353d commit 0d2d95f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/regressions/fixtures/Menu/MenuContentAnchors.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function SimpleMenu({ selectedItem, ...props }) {
return (
<Grid item>
<Button
sx={{
style={{
// give the anchor enough space so that the menu can align the selected item
margin: '80px 0',
}}
Expand Down
12 changes: 8 additions & 4 deletions test/regressions/fixtures/Textarea/Textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ function Textarea() {
value={value}
onChange={handleChange}
/>
<Input sx={{ width: 200 }} multiline placeholder="rows" rows={3} />
<Input sx={{ width: 200 }} multiline value={value} onChange={handleChange} maxRows={4} />
<Input sx={{ width: 200 }} multiline placeholder="long placeholder long placeholder" />
<Input sx={{ width: 200 }} multiline defaultValue="long default value long default value" />
<Input style={{ width: 200 }} multiline placeholder="rows" rows={3} />
<Input style={{ width: 200 }} multiline value={value} onChange={handleChange} maxRows={4} />
<Input style={{ width: 200 }} multiline placeholder="long placeholder long placeholder" />
<Input
style={{ width: 200 }}
multiline
defaultValue="long default value long default value"
/>
</div>
);
}
Expand Down

0 comments on commit 0d2d95f

Please sign in to comment.