Skip to content

Commit

Permalink
[@mantine/demos] Fix Pagination styles api demo (mantinedev#3765)
Browse files Browse the repository at this point in the history
  • Loading branch information
yverby authored Mar 14, 2023
1 parent 5c1d772 commit 6a97bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/docs/core/Pagination.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Control number of items displayed after previous and before next buttons with `b

## Styles API

You can use `data-active` attribute on `item` selector to change styles of selected item:
You can use `data-active` attribute on `control` selector to change styles of selected item:

<Demo data={PaginationDemos.stylesApi} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Demo() {
total={10}
position="center"
styles={(theme) => ({
item: {
control: {
'&[data-active]': {
backgroundImage: theme.fn.gradient({ from: 'red', to: 'yellow' }),
},
Expand Down

0 comments on commit 6a97bf7

Please sign in to comment.