Skip to content

Commit

Permalink
[docs] Fix nested cells alignment in the popular features demo (#12450)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Mar 15, 2024
1 parent a518d0a commit 150d3ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/data/data-grid/demo/PopularFeaturesDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ export default function PopularFeaturesDemo() {
}}
sx={{
fontFamily: 'IBM Plex Sans',
[`& .${gridClasses.cell}`]: {
// Do not target cells in nested grids
[`& > div > div > div > div > div > .${gridClasses.cell}`]: {
py: 1.5,
},
[`& .${gridClasses.columnHeaderTitle}`]: {
Expand Down
3 changes: 2 additions & 1 deletion docs/data/data-grid/demo/PopularFeaturesDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ export default function PopularFeaturesDemo() {
}}
sx={{
fontFamily: 'IBM Plex Sans',
[`& .${gridClasses.cell}`]: {
// Do not target cells in nested grids
[`& > div > div > div > div > div > .${gridClasses.cell}`]: {
py: 1.5,
},
[`& .${gridClasses.columnHeaderTitle}`]: {
Expand Down

0 comments on commit 150d3ce

Please sign in to comment.