Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Batch small changes #26738

Merged
merged 7 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions benchmark/browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ module.exports = {
],
},
resolve: {
alias: {
'react-dom$': 'react-dom/profiling',
},
extensions: ['.js', '.ts', '.tsx'],
},
};
8 changes: 4 additions & 4 deletions docs/notifications.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
{
"id": 27,
"text": "You can <a style=\"color: inherit;\" target=\"_blank\" rel=\"noopener\" href=\"https://twitter.com/MaterialUI\">follow us on Twitter</a> to receive exclusive tips and updates about Material-UI and the React ecosystem."
},
{
"id": 35,
"title": "Let's translate!",
"text": "<a style=\"color: inherit;\" target=\"_blank\" rel=\"noopener\" data-ga-event-category=\"l10n\" data-ga-event-action=\"notification\" data-ga-event-label=\"zh\" href=\"https://translate.material-ui.com/\">帮助 Material-UI 将文档翻译成中文</a>. 🇨🇳",
"userLanguage": "zh"
},
{
"id": 53,
"text": "You can <a style=\"color: inherit;\" target=\"_blank\" rel=\"noopener\" href=\"https://twitter.com/MaterialUI\">follow us on Twitter</a> to receive exclusive tips and updates about Material-UI and the React ecosystem."
}
]
3 changes: 2 additions & 1 deletion docs/pages/branding/mui-x.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ const communityData = [
const Slider = styled('div')(({ theme }) => ({
scrollSnapType: 'x mandatory',
display: 'flex',
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
overflowX: 'scroll',
margin: '0 -15px',
'& > div': {
Expand Down
2 changes: 2 additions & 0 deletions docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ https://material-ui.dev/* https://material-ui.com/:splat 301!
/r/x-license https://material-ui.com/store/items/material-ui-pro/
/r/migration-v4 /guides/migration-v4/

/x/license/ https://docs.google.com/document/d/1nkd5JP5wCefo6UwpVi6PnbTaw8DxhstkCZlfHV5ZgfI/edit?usp=sharing 301

# Legacy redirection
# Added in chronological order
# To be removed at some point
Expand Down
Binary file removed docs/public/static/ads-in-house/divjoy.png
Binary file not shown.
7 changes: 0 additions & 7 deletions docs/src/modules/components/Ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ const inHouseAds = [
description:
'<b>For Figma</b>. A large UI kit with over 600 handcrafted Material-UI components 🎨.',
},
{
name: 'divjoy',
link: 'https://divjoy.com?via=material-ui',
img: '/static/ads-in-house/divjoy.png',
description:
'<b>Divjoy</b>. Create your Material-UI app in minutes. You’ll get a nice template, authentication, database integration, subscription payments, and more.',
},
];

function Ad(props) {
Expand Down
6 changes: 4 additions & 2 deletions docs/src/pages/components/grid/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ For instance, we can implement the ["recommended"](https://material.io/design/la

Responsive values is supported by:

- `spacing`
- `direction`
- `columns`
- `columnSpacing`
- `direction`
- `rowSpacing`
- `spacing`
- all the [other props](#system-props) of the system

> ⚠️ When using a responsive `columns` prop, each grid item needs its corresponding breakpoint.
Expand Down
60 changes: 30 additions & 30 deletions docs/src/pages/components/popper/ScrollPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,39 +148,39 @@ export default function ScrollPlayground() {
const classes = useStyles();

const jsx = `
<Popper
placement="${placement}"
disablePortal={${disablePortal}}
modifiers={[
{
name: 'flip',
enabled: ${flip.enabled},
options: {
altBoundary: ${flip.altBoundary},
rootBoundary: '${flip.rootBoundary}',
padding: 8
}
<Popper
placement="${placement}"
disablePortal={${disablePortal}}
modifiers={[
{
name: 'flip',
enabled: ${flip.enabled},
options: {
altBoundary: ${flip.altBoundary},
rootBoundary: '${flip.rootBoundary}',
padding: 8,
},
{
name: 'preventOverflow',
enabled: ${preventOverflow.enabled},
options: {
altAxis: ${preventOverflow.altAxis},
altBoundary: ${preventOverflow.altBoundary},
tether: ${preventOverflow.tether},
rootBoundary: ${preventOverflow.rootBoundary},
padding: 8
}
},
{
name: 'preventOverflow',
enabled: ${preventOverflow.enabled},
options: {
altAxis: ${preventOverflow.altAxis},
altBoundary: ${preventOverflow.altBoundary},
tether: ${preventOverflow.tether},
rootBoundary: '${preventOverflow.rootBoundary}',
padding: 8,
},
{
name: 'arrow',
enabled: ${arrow},
options: {
element: arrowRef,
}
},
{
name: 'arrow',
enabled: ${arrow},
options: {
element: arrowRef,
},
]}
>
},
]}
>
`;
const id = open ? 'scroll-playground' : null;

Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/DialogContent/DialogContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const DialogContentRoot = styled('div', {
},
})(({ theme, styleProps }) => ({
flex: '1 1 auto',
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
overflowY: 'auto',
padding: '20px 24px',
...(styleProps.dividers
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const DrawerPaper = styled(Paper, {
height: '100%',
flex: '1 0 auto',
zIndex: theme.zIndex.drawer,
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
// temporary style
position: 'fixed',
top: 0,
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/ImageList/ImageList.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const ImageListRoot = styled('ul', {
overflowY: 'auto',
listStyle: 'none',
padding: 0,
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
/* Styles applied to the root element if `variant="masonry"`. */
...(styleProps.variant === 'masonry' && {
display: 'block',
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MenuPaper = styled(Paper, {
// height. This ensures a tapable area outside of the simple menu with which to dismiss
// the menu.
maxHeight: 'calc(100% - 96px)',
// Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
});

Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ const TabsRoot = styled('div', {
})(({ styleProps, theme }) => ({
overflow: 'hidden',
minHeight: 48,
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
display: 'flex',
...(styleProps.vertical && {
flexDirection: 'column',
Expand Down