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 of fixes #15115

Merged
merged 1 commit into from
Mar 30, 2019
Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Mar 30, 2019

  • Fix a prop type warning when rendering on the server
  • Fix a UI jump on the home page
  • Fix a table break of line issue with the demos
  • Remove one flaky test from Argos
  • Remove dead code (thanks to code coverage)
  • Use US Engish over UK.
  • Remove wrongly translated markdown files (in the premium themes)

@@ -51,7 +50,7 @@ const styles = theme => ({
root: {
backgroundColor: theme.palette.background.paper,
textAlign: 'center',
minHeight: 56,
minHeight: 60,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no UI jump during the hydratation.

<CustomTableCell align="right">Fat (g)</CustomTableCell>
<CustomTableCell align="right">Carbs (g)</CustomTableCell>
<CustomTableCell align="right">Protein (g)</CustomTableCell>
<CustomTableCell align="right">Fat (g)</CustomTableCell>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unbreakable space

@@ -128,7 +128,11 @@ function FilledInputAdornments() {
InputProps={{
endAdornment: (
<InputAdornment position="end">
<IconButton aria-label="Toggle password visibility" onClick={handleClickShowPassword}>
<IconButton
edge="end"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the required edge property to match the specification.

/**
* @ignore
*/
serverGenerateClassName: PropTypes.func,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix a PropType warning in the server.

@@ -198,7 +198,7 @@ function makeStyles(stylesOrCreator, options = {}) {
...stylesOptions2
} = options;
const stylesCreator = getStylesCreator(stylesOrCreator);
const classNamePrefix = name || classNamePrefixOption || 'Hook';
const classNamePrefix = name || classNamePrefixOption || 'makeStyles';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match the hook API name.

@@ -175,7 +175,7 @@ export function getLuminance(color) {
}

/**
* Darken or lighten a colour, depending on its luminance.
* Darken or lighten a color, depending on its luminance.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

US

@@ -16,22 +16,6 @@ export function contains(obj, pred) {
return Object.keys(pred).every(key => obj.hasOwnProperty(key) && obj[key] === pred[key]);
}

export function findIndex(arr, pred) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code (I have found it thanks to the test coverage!)

@mui-pr-bot
Copy link

mui-pr-bot commented Mar 30, 2019

Details of bundle changes.

Comparing: 2dedcc1...154d293

bundle parsed diff gzip diff prev parsed current parsed prev gzip current gzip
@material-ui/core 0.00% -0.00% 350,243 350,243 90,024 90,022
@material-ui/core/Paper +0.01% 🔺 +0.01% 🔺 67,867 67,873 19,823 19,825
@material-ui/core/Paper.esm +0.01% 🔺 +0.01% 🔺 60,198 60,204 18,568 18,569
@material-ui/core/Popper 0.00% +0.03% 🔺 30,463 30,463 10,527 10,530
@material-ui/core/styles/createMuiTheme 0.00% 0.00% 17,384 17,384 5,729 5,729
@material-ui/core/useMediaQuery 0.00% 0.00% 2,469 2,469 1,041 1,041
@material-ui/lab 0.00% -0.02% 148,279 148,279 43,580 43,571
@material-ui/styles +0.01% 🔺 +0.01% 🔺 53,099 53,105 15,433 15,434
@material-ui/system 0.00% 0.00% 17,136 17,136 4,525 4,525
Button 0.00% -0.02% 87,947 87,947 26,064 26,060
Modal 0.00% -0.02% 82,055 82,055 24,563 24,557
colorManipulator 0.00% 0.00% 3,232 3,232 1,299 1,299
docs.landing -0.12% -0.31% 49,958 49,899 10,837 10,803
docs.main -0.04% -0.05% 645,407 645,161 200,517 200,420
packages/material-ui/build/umd/material-ui.production.min.js 0.00% 0.00% 298,542 298,548 82,758 82,759

Generated by 🚫 dangerJS against 154d293

@eps1lon
Copy link
Member

eps1lon commented Mar 30, 2019

Could you write a summary what you fixed?

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Mar 30, 2019

Sure, I have updated the pull request description.

@oliviertassinari oliviertassinari merged commit 534c40c into mui:next Mar 30, 2019
@oliviertassinari oliviertassinari deleted the batch-fixes branch March 30, 2019 09:48
@zannager zannager added the core Infrastructure work going on behind the scenes label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants