diff --git a/.circleci/config.yml b/.circleci/config.yml index 4e921f7fe7d40b..8a7522064b9485 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,7 +107,7 @@ jobs: - checkout - install_js - run: - name: Check if yarn prettier was run + name: '`yarn prettier` changes committed?' command: yarn prettier check-changed - run: name: Generate PropTypes @@ -116,7 +116,7 @@ jobs: name: '`yarn proptypes` changes committed?' command: git diff --exit-code - run: - name: Can we generate the documentation? + name: Generate the documentation command: yarn docs:api - run: name: '`yarn docs:api` changes committed?' @@ -134,9 +134,9 @@ jobs: - install_js - run: name: Transpile TypeScript demos - command: yarn workspace docs typescript:transpile --disable-cache + command: yarn docs:typescript:formatted --disable-cache - run: - name: Are the compiled TypeScript demos equivalent to the JavaScript demos? + name: '`yarn docs:typescript:formatted` changes committed?' command: git add -A && git diff --exit-code --staged - run: name: Tests TypeScript definitions diff --git a/docs/src/pages/components/drawers/ClippedDrawer.js b/docs/src/pages/components/drawers/ClippedDrawer.js index bafdaf0795171f..b29b3cf7beaa94 100644 --- a/docs/src/pages/components/drawers/ClippedDrawer.js +++ b/docs/src/pages/components/drawers/ClippedDrawer.js @@ -29,12 +29,13 @@ const useStyles = makeStyles((theme) => ({ drawerPaper: { width: drawerWidth, }, + drawerContainer: { + overflow: 'auto', + }, content: { flexGrow: 1, padding: theme.spacing(3), }, - // necessary for content to be below app bar - toolbar: theme.mixins.toolbar, })); export default function ClippedDrawer() { @@ -57,27 +58,29 @@ export default function ClippedDrawer() { paper: classes.drawerPaper, }} > -
- - {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - - - - {['All mail', 'Trash', 'Spam'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - + +
+ + {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + + + + {['All mail', 'Trash', 'Spam'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + +
-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Rhoncus dolor purus non enim praesent elementum diff --git a/docs/src/pages/components/drawers/ClippedDrawer.tsx b/docs/src/pages/components/drawers/ClippedDrawer.tsx index 0b7d7142863a7b..62414adbdd9eb1 100644 --- a/docs/src/pages/components/drawers/ClippedDrawer.tsx +++ b/docs/src/pages/components/drawers/ClippedDrawer.tsx @@ -30,12 +30,13 @@ const useStyles = makeStyles((theme: Theme) => drawerPaper: { width: drawerWidth, }, + drawerContainer: { + overflow: 'auto', + }, content: { flexGrow: 1, padding: theme.spacing(3), }, - // necessary for content to be below app bar - toolbar: theme.mixins.toolbar, }), ); @@ -59,27 +60,29 @@ export default function ClippedDrawer() { paper: classes.drawerPaper, }} > -
- - {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - - - - {['All mail', 'Trash', 'Spam'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - + +
+ + {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + + + + {['All mail', 'Trash', 'Spam'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + +
-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Rhoncus dolor purus non enim praesent elementum