-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Batch of fixes #15115
Conversation
oliviertassinari
commented
Mar 30, 2019
•
edited
Loading
edited
- 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, |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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!)
392a8f9
to
a96cb07
Compare
Details of bundle changes.Comparing: 2dedcc1...154d293
|
a96cb07
to
154d293
Compare
Could you write a summary what you fixed? |
Sure, I have updated the pull request description. |