Skip to content

Commit

Permalink
[docs] Fix description for "Striped rows" example (mui#5432)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindapaiste authored and alexfauquette committed Aug 26, 2022
1 parent f7e506f commit 950b216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data/data-grid/style/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ You must use `headerAlign` to align the content of the header.

## Striped rows

The following demo illustrates how the rows of the grid can be stripped.
You can use the `indexRelativeToCurrentPage` param passed to `getRowClassName` to apply alternating styles to the rows.

The following demo illustrates how this can be achieved.

{{"demo": "StripedGrid.js", "bg": "inline"}}

## Custom theme

You can use the `indexRelativeToCurrentPage` param passed to `getRowClassName` to apply alternating styles to the rows.

The following demo illustrates how this can be achieved.
The following demo leverages the CSS customization API to match the Ant Design specification.

{{"demo": "AntDesignGrid.js", "defaultCodeOpen": false}}

Expand Down

0 comments on commit 950b216

Please sign in to comment.