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][material-ui] Update the basic Grid section copy #40035

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

REX500
Copy link
Contributor

@REX500 REX500 commented Nov 29, 2023

Current explanation is not correct and it's mixing actual browser window viewport term with the width of the parent grid container. Correct wording would be that xs={12}, when added on a Grid element, would cause it to take 12 spaces of it's parent. We do not and cannot assume that the parent Grid element has width set to 100vw. If the parent Grid has width set to 300px, for example, setting xs={12} on it's child would mean that that child occupies full width of the parent. In this case, given that parent Grid doesn't have any paddings and margins, would mean that the Grid has a width of 300px.

Current explanation is not correct and it's mixing actual browser window viewport term with the width of the parent grid container.


Signed-off-by: Filip Malek <filamalek@hotmail.com>
@mui-bot
Copy link

mui-bot commented Nov 29, 2023

Netlify deploy preview

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 30e6132

@danilo-leal danilo-leal changed the title Update grid.md Basic Grid section wording [docs][material-UI] Update the basic Grid section copy Nov 29, 2023
@danilo-leal danilo-leal changed the title [docs][material-UI] Update the basic Grid section copy [docs][material-ui] Update the basic Grid section copy Nov 29, 2023
@danilo-leal danilo-leal added docs Improvements or additions to the documentation component: Grid The React component. package: material-ui Specific to @mui/material labels Nov 29, 2023
@Tomas-cm
Copy link

WOw! thats nice
}

Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Copy link
Member

@samuelsycamore samuelsycamore left a comment

Choose a reason for hiding this comment

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

Thanks for raising this @REX500 ! I pushed a small grammar fix and a rewrite of the first sentence, because it wasn't clear to me what section it was referring to with "as you can read later in this page."

@samuelsycamore samuelsycamore merged commit 7b9ab9a into mui:master Dec 1, 2023
19 checks passed
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 1, 2023
Signed-off-by: Filip Malek <filamalek@hotmail.com>
Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
Signed-off-by: Filip Malek <filamalek@hotmail.com>
Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
Signed-off-by: Filip Malek <filamalek@hotmail.com>
Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
Signed-off-by: Filip Malek <filamalek@hotmail.com>
Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Grid The React component. docs Improvements or additions to the documentation package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants