Skip to content

Commit c39a2e5

Browse files
[docs] Update new links to MD2 (mui#34848)
1 parent de6666f commit c39a2e5

File tree

211 files changed

+745
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+745
-581
lines changed

CHANGELOG.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4610,7 +4610,7 @@ _Jun 23, 2021_
46104610
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
46114611

46124612
- 🚀 We have only 2 left in the [breaking changes](https://github.com/mui/material-ui/issues/20012). The plan to release 5.0.0-beta.0 is on July 1st and will start to promote its usage over v4.
4613-
- 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
4613+
- 🎨 We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
46144614

46154615
<a href="https://mui.com/components/slider/#continuous-sliders"><img width="247" alt="" src="https://user-images.githubusercontent.com/3165635/121884800-a8808600-cd13-11eb-8cdf-e25de8f1ba73.png" style="margin: auto"></a>
46164616

@@ -4695,7 +4695,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
46954695

46964696
- &#8203;<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
46974697

4698-
Rework the CSS to match the latest [Material Design guidelines](https://material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
4698+
Rework the CSS to match the latest [Material Design guidelines](https://m2.material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
46994699

47004700
<a href="https://mui.com/components/slider/#continuous-sliders"><img width="247" alt="" src="https://user-images.githubusercontent.com/3165635/121884800-a8808600-cd13-11eb-8cdf-e25de8f1ba73.png" style="margin: auto"></a>
47014701

@@ -4943,7 +4943,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
49434943

49444944
- &#8203;<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
49454945

4946-
The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
4946+
The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://m2.material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
49474947

49484948
```jsx
49494949
<AppBar enableColorOnDark />
@@ -5105,8 +5105,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
51055105

51065106
Update the implementation to better match Material Design:
51075107

5108-
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
5109-
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
5108+
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
5109+
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
51105110

51115111
#### Changes
51125112

@@ -6450,7 +6450,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
64506450

64516451
- &#8203;<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
64526452

6453-
The icons were synchronized with https://material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
6453+
The icons were synchronized with https://m2.material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
64546454

64556455
```diff
64566456
// AmpStories -> Download

CHANGELOG.old.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6875,7 +6875,7 @@ Here are some highlights ✨:
68756875

68766876
- After many iterations, we are happy to announce `@material-ui/icons` v2.0.0 💃.
68776877
With this version, you can take advantage of all the icons recently released by Google:
6878-
https://material.io/tools/icons/. There are more than 5,000 icons.
6878+
https://m2.material.io/tools/icons/. There are more than 5,000 icons.
68796879
(#12016, #12036, #12170, #12111, #12225)
68806880

68816881
- The 1.4.0 release of Material UI has introduced a new implementation of the Tooltip and Popper component.
@@ -8464,7 +8464,7 @@ The `inputType` property was renamed `type`.
84648464

84658465
- [Checkbox, Radio, Switch] Change default color, add color prop (#10138) @mbrookes
84668466

8467-
The Material Design specification says that selection controls elements should [use the application's secondary color](https://material.io/guidelines/components/selection-controls.html).
8467+
The Material Design specification says that selection controls elements should [use the application's secondary color](https://m2.material.io/guidelines/components/selection-controls.html).
84688468

84698469
```diff
84708470
-<Checkbox />
@@ -9002,7 +9002,7 @@ Here are some highlights ✨:
90029002

90039003
- [core] Revise the theme.palette.primary & secondary approach (#9794) @mbrookes
90049004

9005-
It's an important simplification of the palette system. You can now directly use the "official" Color Tool](https://material.io/color/).
9005+
It's an important simplification of the palette system. You can now directly use the "official" Color Tool](https://m2.material.io/color/).
90069006

90079007
- Instead of using a rich color object of 14 different keys, we rely on an object of 4 different keys: `light`, `main`, `dark` and `contrastText`.
90089008
- Providing the full-color object used to be required. Now, we will provide a nice default to the different values using the `main` value.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
**MUI Core** contains foundational React UI component libraries for shipping new features faster.
99

10-
- [_Material UI_](https://mui.com/material-ui/getting-started/overview/) is a comprehensive library of components that features our implementation of Google's [Material Design](https://material.io/design/introduction/) system.
10+
- [_Material UI_](https://mui.com/material-ui/getting-started/overview/) is a comprehensive library of components that features our implementation of Google's [Material Design](https://m2.material.io/design/introduction/) system.
1111

1212
- [_Joy UI_](https://mui.com/joy-ui/getting-started/overview/) is a beautifully designed library of React UI components.
1313

docs/data/base/components/focus-trap/focus-trap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ components: FocusTrap
55
githubLabel: 'component: FocusTrap'
66
---
77

8-
# Focus trap
8+
# Focus Trap
99

1010
<p class="description">The FocusTrap component prevents the user's focus from escaping its children components.</p>
1111

docs/data/base/components/textarea-autosize/textarea-autosize.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ components: TextareaAutosize
55
githubLabel: 'component: TextareaAutosize'
66
---
77

8-
# Textarea autosize
8+
# Textarea Autosize
99

1010
<p class="description">The TextareaAutosize component gives you a textarea HTML element that automatically adjusts its height to match the length of the content within.</p>
1111

docs/data/base/pages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ const pages = [
6060
pathname: '/base/components/utils',
6161
subheader: 'utils',
6262
children: [
63-
{ pathname: '/base/react-click-away-listener', title: 'Click-away listener' },
63+
{ pathname: '/base/react-click-away-listener', title: 'Click-Away Listener' },
6464
{ pathname: '/base/react-focus-trap', title: 'Focus Trap' },
6565
{ pathname: '/base/react-form-control', title: 'Form control' },
6666
{ pathname: '/base/react-modal', title: 'Modal' },
6767
{ pathname: '/base/react-no-ssr', title: 'No SSR' },
6868
{ pathname: '/base/react-popper', title: 'Popper' },
6969
{ pathname: '/base/react-portal', title: 'Portal' },
70-
{ pathname: '/base/react-textarea-autosize', title: 'Textarea autosize' },
70+
{ pathname: '/base/react-textarea-autosize', title: 'Textarea Autosize' },
7171
],
7272
},
7373
],

docs/data/joy/components/aspect-ratio/aspect-ratio.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ product: joy-ui
33
title: React Aspect Ratio component
44
---
55

6-
# Aspect ratio
6+
# Aspect Ratio
77

8-
<p class="description">The aspect ratio component shapes the content with the specified ratio.</p>
8+
<p class="description">The Aspect Ratio component shapes the content with the specified ratio.</p>
99

1010
## Introduction
1111

docs/data/joy/pages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const pages = [
3333
{ pathname: '/joy-ui/react-text-field', title: 'Text Field' },
3434
{ pathname: '/joy-ui/react-textarea' },
3535
{ pathname: '/joy-ui/react-checkbox' },
36-
{ pathname: '/joy-ui/react-radio-button' },
36+
{ pathname: '/joy-ui/react-radio-button', title: 'Radio Group' },
3737
{ pathname: '/joy-ui/react-select' },
3838
{ pathname: '/joy-ui/react-slider' },
3939
{ pathname: '/joy-ui/react-switch' },
@@ -43,7 +43,7 @@ const pages = [
4343
pathname: '/joy-ui/components/data-display',
4444
subheader: 'data-display',
4545
children: [
46-
{ pathname: '/joy-ui/react-aspect-ratio' },
46+
{ pathname: '/joy-ui/react-aspect-ratio', title: 'Aspect Ratio' },
4747
{ pathname: '/joy-ui/react-avatar' },
4848
{ pathname: '/joy-ui/react-badge' },
4949
{ pathname: '/joy-ui/react-chip' },

docs/data/material/components/accordion/accordion-pt.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: Componente de Acordeão React
44
components: Accordion, AccordionActions, AccordionDetails, AccordionSummary
55
githubLabel: 'component: Accordion'
6-
materialDesign: https://material.io/archive/guidelines/components/expansion-panels.html
6+
materialDesign: https://m1.material.io/components/expansion-panels.html
77
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
88
---
99

@@ -16,7 +16,7 @@ Um acordeão é um contêiner leve que pode estar sozinho ou conectado em uma su
1616
{{"component": "modules/components/ComponentLinkHeader.js"}}
1717

1818
:::info
19-
**Note:** Accordions are no longer documented in the [Material Design guidelines](https://material.io/), but MUI will continue to support them. It was formerly known as the "expansion panel".
19+
**Note:** Accordions are no longer documented in the [Material Design guidelines](https://m2.material.io/), but MUI will continue to support them. It was formerly known as the "expansion panel".
2020
:::
2121

2222
## Acordeão básico

docs/data/material/components/accordion/accordion-zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: React Accordion (扩展面板)组件
44
components: Accordion, AccordionActions, AccordionDetails, AccordionSummary
55
githubLabel: 'component: accordion'
6-
materialDesign: https://material.io/archive/guidelines/components/expansion-panels.html
6+
materialDesign: https://m1.material.io/components/expansion-panels.html
77
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
88
---
99

@@ -15,7 +15,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
1515

1616
{{"component": "modules/components/ComponentLinkHeader.js"}}
1717

18-
**注意:** 此版本的扩展面板将不再记录在 [Material Design 指南中](https://material.io/),但 Material-UI 将继续支持它。 它之前被称为“expansion panel”。
18+
**注意:** 此版本的扩展面板将不再记录在 [Material Design 指南中](https://m2.material.io/),但 Material-UI 将继续支持它。 它之前被称为“expansion panel”。
1919
:::
2020

2121
## 简单的扩展面板

docs/data/material/components/accordion/accordion.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: React Accordion component
44
components: Accordion, AccordionActions, AccordionDetails, AccordionSummary
55
githubLabel: 'component: accordion'
6-
materialDesign: https://material.io/archive/guidelines/components/expansion-panels.html
6+
materialDesign: https://m1.material.io/components/expansion-panels.html
77
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
88
---
99

@@ -17,7 +17,7 @@ An accordion is a lightweight container that may either be used standalone, or b
1717

1818
:::info
1919
**Note:**
20-
Accordions are no longer documented in the [Material Design guidelines](https://material.io/), but MUI will continue to support them. It was formerly known as the "expansion panel".
20+
Accordions are no longer documented in the [Material Design guidelines](https://m2.material.io/), but MUI will continue to support them. It was formerly known as the "expansion panel".
2121
:::
2222

2323
## Basic accordion

docs/data/material/components/alert/alert-pt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/alert/
1010

1111
<p class="description">Um alerta exibe uma mensagem curta e importante de uma forma que atrai a atenção do usuário sem interromper o que ele estiver fazendo.</p>
1212

13-
**Nota:** Este componente não está documentado nas [diretrizes do Material Design](https://material.io/), mas MUI o suporta.
13+
**Nota:** Este componente não está documentado nas [diretrizes do Material Design](https://m2.material.io/), mas MUI o suporta.
1414

1515
{{"component": "modules/components/ComponentLinkHeader.js"}}
1616

docs/data/material/components/alert/alert-zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/alert/
1010

1111
<p class="description">一个警告提示组件展示了一段简短且重要的信息,在不影响用户操作的同时能够吸引用户的注意力。</p>
1212

13-
**注意:** 警告提示不属于 [Material Design 指南](https://material.io/) 中的一部分,但是 MUI 仍然会继续支持该组件。
13+
**注意:** 警告提示不属于 [Material Design 指南](https://m2.material.io/) 中的一部分,但是 MUI 仍然会继续支持该组件。
1414

1515
{{"component": "modules/components/ComponentLinkHeader.js"}}
1616

docs/data/material/components/alert/alert.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/alert/
1010

1111
<p class="description">An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.</p>
1212

13-
**Note:** This component is not documented in the [Material Design guidelines](https://material.io/), but MUI supports it.
13+
**Note:** This component is not documented in the [Material Design guidelines](https://m2.material.io/), but MUI supports it.
1414

1515
{{"component": "modules/components/ComponentLinkHeader.js"}}
1616

docs/data/material/components/app-bar/app-bar-pt.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: App bar React component
44
components: AppBar, Toolbar, Menu
55
githubLabel: 'component: app bar'
6-
materialDesign: https://material.io/components/app-bars-top
6+
materialDesign: https://m2.material.io/components/app-bars-top
77
---
88

99
# App bar
@@ -148,6 +148,6 @@ function HideOnScroll(props) {
148148

149149
## Enable color on dark
150150

151-
Following the [Material Design guidelines](https://material.io/design/color/dark-theme.html), the `color` prop has no effect on the appearance of the app bar in dark mode. You can override this behavior by setting the `enableColorOnDark` prop to `true`.
151+
Following the [Material Design guidelines](https://m2.material.io/design/color/dark-theme.html), the `color` prop has no effect on the appearance of the app bar in dark mode. You can override this behavior by setting the `enableColorOnDark` prop to `true`.
152152

153153
{{"demo": "EnableColorOnDarkAppBar.js", "bg": true}}

docs/data/material/components/app-bar/app-bar-zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: 应用栏(App bar)React组件
44
components: AppBar, Toolbar, Menu
55
githubLabel: 'component: app bar'
6-
materialDesign: https://material.io/components/app-bars-top
6+
materialDesign: https://m2.material.io/components/app-bars-top
77
---
88

99
# 应用栏(App bar)
@@ -148,6 +148,6 @@ function HideOnScroll(props) {
148148

149149
## 启用深色模式颜色
150150

151-
按照[Material Design设计准则](https://material.io/design/color/dark-theme.html)`color`属性对深色模式下的应用栏外观没有影响。 你可以通过将`enableColorOnDark`属性设置为`true`覆盖这一行为。
151+
按照[Material Design设计准则](https://m2.material.io/design/color/dark-theme.html)`color`属性对深色模式下的应用栏外观没有影响。 你可以通过将`enableColorOnDark`属性设置为`true`覆盖这一行为。
152152

153153
{{"demo": "EnableColorOnDarkAppBar.js", "bg": true}}

docs/data/material/components/app-bar/app-bar.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
product: material-ui
3-
title: App bar React component
3+
title: App Bar React component
44
components: AppBar, Toolbar, Menu
55
githubLabel: 'component: app bar'
6-
materialDesign: https://material.io/components/app-bars-top
6+
materialDesign: https://m2.material.io/components/app-bars-top
77
---
88

9-
# App bar
9+
# App Bar
1010

11-
<p class="description">The App bar displays information and actions relating to the current screen.</p>
11+
<p class="description">The App Bar displays information and actions relating to the current screen.</p>
1212

1313
The top App bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions.
1414

@@ -148,7 +148,7 @@ function HideOnScroll(props) {
148148

149149
## Enable color on dark
150150

151-
Following the [Material Design guidelines](https://material.io/design/color/dark-theme.html), the `color` prop has no effect on the appearance of the app bar in dark mode.
151+
Following the [Material Design guidelines](https://m2.material.io/design/color/dark-theme.html), the `color` prop has no effect on the appearance of the app bar in dark mode.
152152
You can override this behavior by setting the `enableColorOnDark` prop to `true`.
153153

154154
{{"demo": "EnableColorOnDarkAppBar.js", "bg": true}}

docs/data/material/components/bottom-navigation/bottom-navigation-pt.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ product: material-ui
33
title: Bottom navigation React component
44
components: BottomNavigation, BottomNavigationAction
55
githubLabel: 'component: bottom navigation'
6-
materialDesign: https://material.io/components/bottom-navigation
6+
materialDesign: https://m2.material.io/components/bottom-navigation
77
---
88

99
# Bottom navigation
1010

1111
<p class="description">A barra de navegação inferior permite navegar entre os principais destinos em um aplicativo.</p>
1212

13-
Barras de [navegação inferior](https://material.io/design/components/bottom-navigation.html) apresentam de três a cinco destinos na parte inferior da tela. Cada destino é apresentado por um ícone e opcionalmente um rótulo de texto. Quando um ícone de navegação inferior é pressionado, o usuário é levado ao destino associado com ícone.
13+
Barras de [navegação inferior](https://m2.material.io/components/bottom-navigation) apresentam de três a cinco destinos na parte inferior da tela. Cada destino é apresentado por um ícone e opcionalmente um rótulo de texto. Quando um ícone de navegação inferior é pressionado, o usuário é levado ao destino associado com ícone.
1414

1515
{{"component": "modules/components/ComponentLinkHeader.js"}}
1616

docs/data/material/components/bottom-navigation/bottom-navigation-zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ product: material-ui
33
title: Bottom navigation React component
44
components: BottomNavigation, BottomNavigationAction
55
githubLabel: 'component: bottom navigation'
6-
materialDesign: https://material.io/components/bottom-navigation
6+
materialDesign: https://m2.material.io/components/bottom-navigation
77
---
88

99
# Bottom navigation

docs/data/material/components/bottom-navigation/bottom-navigation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
product: material-ui
3-
title: Bottom navigation React component
3+
title: Bottom Navigation React component
44
components: BottomNavigation, BottomNavigationAction
55
githubLabel: 'component: bottom navigation'
6-
materialDesign: https://material.io/components/bottom-navigation
6+
materialDesign: https://m2.material.io/components/bottom-navigation
77
---
88

9-
# Bottom navigation
9+
# Bottom Navigation
1010

11-
<p class="description">Bottom navigation bars allow movement between primary destinations in an app.</p>
11+
<p class="description">The Bottom Bavigation bar allows movement between primary destinations in an app.</p>
1212

1313
Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.
1414

0 commit comments

Comments
 (0)