Skip to content

Commit

Permalink
[test][docs] Improve demos for better regression screenshots (#43742)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Sep 13, 2024
1 parent bede032 commit a487633
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function ExampleAlignmentButtons() {
variant="outlined"
value={alignment}
onChange={(event) => setAlignment(event.target.value)}
sx={{ display: 'inline-flex' }}
>
{['left', 'center', 'right', 'justify'].map((item) => (
<Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function ExampleAlignmentButtons() {
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
setAlignment(event.target.value)
}
sx={{ display: 'inline-flex' }}
>
{['left', 'center', 'right', 'justify'].map((item) => (
<Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function ToggleGroupToolbar() {
return (
<Sheet
variant="outlined"
sx={{ borderRadius: 'md', display: 'flex', gap: 2, p: 0.5 }}
sx={{ borderRadius: 'md', display: 'inline-flex', gap: 2, p: 0.5 }}
>
<ToggleButtonGroup
variant="plain"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function ToggleGroupToolbar() {
return (
<Sheet
variant="outlined"
sx={{ borderRadius: 'md', display: 'flex', gap: 2, p: 0.5 }}
sx={{ borderRadius: 'md', display: 'inline-flex', gap: 2, p: 0.5 }}
>
<ToggleButtonGroup
variant="plain"
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/dividers/FlexDivider.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function FlexDivider() {
return (
<Box
sx={{
display: 'flex',
display: 'inline-flex',
alignItems: 'center',
border: '1px solid',
borderColor: 'divider',
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/dividers/FlexDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function FlexDivider() {
return (
<Box
sx={{
display: 'flex',
display: 'inline-flex',
alignItems: 'center',
border: '1px solid',
borderColor: 'divider',
Expand Down

0 comments on commit a487633

Please sign in to comment.