Skip to content

Commit

Permalink
[docs-infra] Fix layout shift demo toolbar (#42743)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 24, 2024
1 parent 3d10564 commit 7a47edd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/modules/components/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function DemoToolbarFallback() {
const t = useTranslate();

// Sync with styles from DemoToolbar, we can't import the styles
return <Box sx={{ height: 40 }} aria-busy aria-label={t('demoToolbarLabel')} role="toolbar" />;
return <Box sx={{ height: 42 }} aria-busy aria-label={t('demoToolbarLabel')} role="toolbar" />;
}

function getDemoName(location) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/DemoToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Root = styled('div')(({ theme }) => [
function DemoTooltip(props) {
return (
<Tooltip
componentsProps={{
slotProps={{
popper: {
sx: {
zIndex: (theme) => theme.zIndex.appBar - 1,
Expand Down
3 changes: 2 additions & 1 deletion docs/src/modules/components/DemoToolbarRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DemoToolbarRoot = styled('div', {
maxHeight: 50,
display: 'block',
marginTop: -1,
padding: theme.spacing(0.5, 1),
padding: theme.spacing('2px', 1),
border: `1px solid ${(theme.vars || theme).palette.divider}`,
borderTopWidth: 0,
backgroundColor: alpha(theme.palette.grey[50], 0.2),
Expand Down Expand Up @@ -54,4 +54,5 @@ const DemoToolbarRoot = styled('div', {
},
}),
]);

export default DemoToolbarRoot;

0 comments on commit 7a47edd

Please sign in to comment.