Skip to content

Commit 5e5fe25

Browse files
[core] Batch small changes (#21249)
1 parent 23cc516 commit 5e5fe25

File tree

21 files changed

+68
-59
lines changed

21 files changed

+68
-59
lines changed

.github/ISSUE_TEMPLATE/1.bug.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Bug report 🐛
33
about: Create a bug report for Material-UI.
4+
labels: 'status: needs triage'
45
---
56

67
<!-- Provide a general summary of the issue in the Title above -->

.github/ISSUE_TEMPLATE/2.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Feature request 💄
33
about: Suggest a new idea for the project.
4+
labels: 'status: needs triage'
45
---
56

67
<!-- Provide a general summary of the feature in the Title above -->

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ Diamond Sponsors are those who have pledged $1,500/month or more to Material-UI.
5959
via [Patreon](https://www.patreon.com/oliviertassinari)
6060

6161
<p style="display: flex; justify-content: center;">
62-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=96" srcset="https://github.com/tidelift.png?size=96, https://github.com/tidelift.png?size=192 2x" alt="tidelift" title="Enterprise-ready open source software" loading="lazy" /></a>
63-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=96" srcset="https://github.com/teambit.png?size=96, https://github.com/teambit.png?size=192 2x" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
62+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=96" srcset="https://github.com/tidelift.png?size=192 2x" alt="tidelift" title="Enterprise-ready open source software" loading="lazy" /></a>
63+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=96" srcset="https://github.com/teambit.png?size=192 2x" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
6464
</p>
6565

6666
via [OpenCollective](https://opencollective.com/material-ui)
6767

6868
<p style="display: flex; justify-content: center; flex-wrap: wrap;">
69-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.call-em-all.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/callemall/a6946da/logo/96.png" srcset="https://images.opencollective.com/callemall/a6946da/logo/96.png, https://images.opencollective.com/callemall/a6946da/logo/192.png 2x" alt="call-em-all" title="The easy way to message your group" height="96" width="96" loading="lazy"></a>
69+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.call-em-all.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/callemall/a6946da/logo/96.png" srcset="https://images.opencollective.com/callemall/a6946da/logo/192.png 2x" alt="call-em-all" title="The easy way to message your group" height="96" width="96" loading="lazy"></a>
7070
</p>
7171

7272
Gold Sponsors are those who have pledged $500/month or more to Material-UI.

docs/pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function Analytics() {
160160
* Adjusted to track 3 or more different ratios
161161
*/
162162
function trackDevicePixelRation() {
163-
window.ga('set', 'dimension3', window.devicePixelRatio);
163+
window.ga('set', 'dimension3', Math.round(window.devicePixelRatio * 10) / 10);
164164

165165
matchMedia = window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);
166166
// Need to setup again.

docs/src/modules/components/DiamondSponsors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function DiamondSponsors(props) {
5353
<Typography variant="caption" color="textSecondary" display="block" gutterBottom>
5454
{t('diamondSponsors')}
5555
</Typography>
56-
{randomSencha < 0.05 ? (
56+
{randomSencha < 0.25 ? (
5757
<a
5858
data-ga-event-category="sponsor"
5959
data-ga-event-action={spot}

docs/src/pages/components/progress/CustomizedProgressBars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BorderLinearProgress = withStyles((theme) => ({
99
borderRadius: 5,
1010
},
1111
colorPrimary: {
12-
backgroundColor: theme.palette.grey[theme.palette.type === 'dark' ? 700 : 200],
12+
backgroundColor: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
1313
},
1414
bar: {
1515
borderRadius: 5,
@@ -23,7 +23,7 @@ const useStylesFacebook = makeStyles((theme) => ({
2323
position: 'relative',
2424
},
2525
bottom: {
26-
color: theme.palette.grey[theme.palette.type === 'dark' ? 700 : 200],
26+
color: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
2727
},
2828
top: {
2929
color: '#1a90ff',

docs/src/pages/components/progress/CustomizedProgressBars.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const BorderLinearProgress = withStyles((theme: Theme) =>
1010
borderRadius: 5,
1111
},
1212
colorPrimary: {
13-
backgroundColor: theme.palette.grey[theme.palette.type === 'dark' ? 700 : 200],
13+
backgroundColor: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
1414
},
1515
bar: {
1616
borderRadius: 5,
@@ -26,7 +26,7 @@ const useStylesFacebook = makeStyles((theme: Theme) =>
2626
position: 'relative',
2727
},
2828
bottom: {
29-
color: theme.palette.grey[theme.palette.type === 'dark' ? 700 : 200],
29+
color: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
3030
},
3131
top: {
3232
color: '#1a90ff',

docs/src/pages/customization/theming/theming.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Using `unstable_createMuiStrictModeTheme` restricts the usage of some of our com
137137

138138
The component used in the `component` prop of the following components need to forward their ref:
139139

140-
- [`Collapse`](/api/Collapse/)
140+
- [`Collapse`](/api/collapse/)
141141

142142
Otherwise you'll encounter `Error: Function component cannot be given refs`.
143143
See also: [Composition: Caveat with refs](/guides/composition/#caveat-with-refs).
@@ -146,9 +146,9 @@ See also: [Composition: Caveat with refs](/guides/composition/#caveat-with-refs)
146146

147147
The `children` of the following components need to forward their ref:
148148

149-
- [`Fade`](/api/Fade/)
150-
- [`Grow`](/api/Grow/)
151-
- [`Zoom`](/api/Zoom/)
149+
- [`Fade`](/api/fade/)
150+
- [`Grow`](/api/grow/)
151+
- [`Zoom`](/api/zoom/)
152152

153153
```diff
154154
-function TabPanel(props) {
@@ -195,12 +195,12 @@ function Fade() {
195195

196196
#### Arguments
197197

198-
1. `options` (_Object_): Takes an incomplete theme object and adds the missing parts.
199-
2. `...args` (_Array_): Deep merge the arguments with the about to be returned theme.
198+
1. `options` (*Object*): Takes an incomplete theme object and adds the missing parts.
199+
2. `...args` (*Array*): Deep merge the arguments with the about to be returned theme.
200200

201201
#### Returns
202202

203-
`theme` (_Object_): A complete, ready to use theme object.
203+
`theme` (*Object*): A complete, ready to use theme object.
204204

205205
#### Examples
206206

docs/src/pages/discover-more/backers/backers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Please contact us at diamond@material-ui.com to subscribe to this tier.
2222
via [Patreon](https://www.patreon.com/oliviertassinari)
2323

2424
<p style="display: flex; justify-content: center;">
25-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=96" srcset="https://github.com/tidelift.png?size=96, https://github.com/tidelift.png?size=192 2x" alt="tidelift" title="Enterprise-ready open source software" loading="lazy" /></a>
26-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=96" srcset="https://github.com/teambit.png?size=96, https://github.com/teambit.png?size=192 2x" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
25+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=96" srcset="https://github.com/tidelift.png?size=192 2x" alt="tidelift" title="Enterprise-ready open source software" loading="lazy" /></a>
26+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=96" srcset="https://github.com/teambit.png?size=192 2x" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
2727
</p>
2828

2929
via [OpenCollective](https://opencollective.com/material-ui)
3030

3131
<p style="display: flex; justify-content: center; flex-wrap: wrap;">
32-
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.call-em-all.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/callemall/a6946da/logo/96.png" srcset="https://images.opencollective.com/callemall/a6946da/logo/96.png, https://images.opencollective.com/callemall/a6946da/logo/192.png 2x" alt="call-em-all" title="The easy way to message your group" height="96" width="96" loading="lazy"></a>
32+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.call-em-all.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/callemall/a6946da/logo/96.png" srcset="https://images.opencollective.com/callemall/a6946da/logo/192.png 2x" alt="call-em-all" title="The easy way to message your group" height="96" width="96" loading="lazy"></a>
3333
</p>
3434

3535
Gold Sponsors are those who have pledged $500/month or more to Material-UI.

docs/src/pages/discover-more/related-projects/related-projects.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ This is a collection of third-party projects that extend Material-UI.
3232

3333
- [@mui-treasury/layout](https://mui-treasury.com/layout): Components to handle the overall layout of a page. You can find a couple of examples, e.g. [a reactjs.org clone](https://mui-treasury.com/layout/clones/reactjs).
3434

35-
### Tables
35+
### Table
3636

3737
- [material-table](https://github.com/mbrn/material-table): A simple and powerful Datatable for React based on Material-UI Table with some additional features. It supports many different use cases (editable, filtering, grouping, sorting, selection, i18n, tree data and more).
3838
- [dx-react-grid-material-ui](https://devexpress.github.io/devextreme-reactive/react/grid/): A data grid for Material-UI with paging, sorting, filtering, grouping and editing features ([paid license](https://js.devexpress.com/licensing/)).
3939
- [mui-datatables](https://github.com/gregnb/mui-datatables): Responsive data tables for Material-UI with filtering, sorting, search and more.
4040
- [tubular-react](https://github.com/unosquare/tubular-react): A Material-UI table with local or remote data-source. Featuring filtering, sorting, free-text search, export to CSV locally, and aggregations.
4141

42-
### Notifications
42+
### Notification
4343

4444
- [notistack](https://github.com/iamhosseindhv/notistack): Makes it easy to display snackbars (so you don't have to deal with open/close state of them).
4545

4646
### Upload
4747

4848
- [material-ui-dropzone](https://github.com/Yuvaleros/material-ui-dropzone): Built on top of react-dropzone.
4949

50-
### Forms
50+
### Form
5151

5252
- [formik-material-ui](https://github.com/stackworx/formik-material-ui) Bindings for using Material-UI with [formik](https://jaredpalmer.com/formik).
5353
- [redux-form-material-ui](https://github.com/erikras/redux-form-material-ui) Bindings for using Material-UI with [Redux Form](https://redux-form.com/).
@@ -66,18 +66,22 @@ This is a collection of third-party projects that extend Material-UI.
6666

6767
- [material-ui-flat-pagination](https://github.com/szmslab/material-ui-flat-pagination): A flat design pagination component for Material-UI.
6868

69-
### Schedulers/Calendars
69+
### Scheduler/Calendar
7070

7171
- [dx-react-scheduler-material-ui](https://devexpress.github.io/devextreme-reactive/react/scheduler/): A scheduler/calendar component for Material-UI with multiple calendar views, editing, recurrence appointments and date navigation features ([paid license](https://js.devexpress.com/licensing/)).
7272

73-
### Charts
73+
### Chart
7474

7575
- [dx-react-chart-material-ui](https://devexpress.github.io/devextreme-reactive/react/chart/): Charts for Material-UI that visualizes data using a variety of series types, including bar, line, area, scatter, pie, and more ([paid license](https://js.devexpress.com/licensing/)).
7676

77-
### Dialogs
77+
### Dialog
7878

7979
- [material-ui-confirm](https://github.com/jonatanklosko/material-ui-confirm): Provides easy to use confirmation dialogs to simplify confirming user actions without writing boilerplate code.
8080

81+
### Color picker
82+
83+
- [material-ui-color](https://github.com/mikbry/material-ui-color): Collections of color components for material-ui. No dependencies, small, highly customizable and theming support!
84+
8185
## Blocks
8286

8387
- [components-extra](https://github.com/alexandre-lelain/components-extra): Provides a set of "molecule" components built on top of Material-UI like a Footer, a CookiesBanner, a BackToTop button and other complex elements highly customizable to help devs build the macro parts of their UI very quickly. Those components are often duplicated across sites - this library solves this exact problem.

0 commit comments

Comments
 (0)