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

[docs] Polish the first experience #261

Merged
merged 2 commits into from
Sep 11, 2020

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 10, 2020

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Sep 10, 2020
@@ -0,0 +1,3 @@
# Proxies
# material-ui-x is configured to be hosted at the root.
/static/* https://material-ui.netlify.app/static/:splat 200
Copy link
Member Author

Choose a reason for hiding this comment

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

cellClassName: 'font-tabular-nums',
};

const useStyles = makeStyles({
root: {
'& .font-tabular-nums': {
fontVariantNumeric: 'font-tabular-nums',
fontVariantNumeric: 'tabular-nums',
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 invalid CSS

description: 'this column has a value getter and is not sortable',
headerClassName: 'highlight',
headerName: 'Full name',
description: 'This column has a value getter and is not sortable.',
Copy link
Member Author

Choose a reason for hiding this comment

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


```json
"peerDependencies": {
"@material-ui/core": "^4.9.12",
"react": "^16.8.0",
"styled-components": "^5.1.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

Forgotten in the previous changes

@@ -16,6 +16,13 @@
"bin": {
"datagen": "./bin/data-gen-script.js"
},
"scripts": {
Copy link
Member Author

Choose a reason for hiding this comment

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

first for consistency and ease of usage

Comment on lines -40 to +35
StatusRenderer,
renderCountry,
Copy link
Member Author

@oliviertassinari oliviertassinari Sep 10, 2020

Choose a reason for hiding this comment

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

I was confused by the upper case, I thought they were components, turn out, they weren't, they were render functions. I have only realized it after trying using hooks inside, it wasn't working.

Copy link
Member

Choose a reason for hiding this comment

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

Yes it's true, the prop where they are attached is called renderCell

Comment on lines -40 to +31
</div>
<Checkbox
Copy link
Member Author

Choose a reason for hiding this comment

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

lighter DOM structure. Made possible with display flex, align center, justify center. I assume the div was added to fix the non-circular checkbox.

Comment on lines -177 to +179
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
Copy link
Member Author

@oliviertassinari oliviertassinari Sep 10, 2020

Choose a reason for hiding this comment

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

This change might be controversial. I was surprised by the previous behavior. I couldn't understand why my custom cell was full width.

const classes = useStyles();

const handleClick = (event) => {
event.preventDefault();
Copy link
Member Author

Choose a reason for hiding this comment

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

Avoid opening links when testing the grid.

@oliviertassinari oliviertassinari merged commit ddad776 into mui:master Sep 11, 2020
@oliviertassinari oliviertassinari deleted the docs-improve-overview branch September 11, 2020 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants