Skip to content

Commit

Permalink
Add new tokens for Paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed May 25, 2024
1 parent 3e1e91a commit a2db31a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
18 changes: 9 additions & 9 deletions components/lib/paginator/style/PaginatorStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const theme = ({ dt }) => `
user-select: none;
overflow: hidden;
position: relative;
background: transparent;
background: ${dt('paginator.nav.button.background')};
border: 0 none;
color: ${dt('paginator.nav.button.color')};
min-width: ${dt('paginator.nav.button.width')};
Expand All @@ -55,7 +55,7 @@ const theme = ({ dt }) => `
outline-offset: ${dt('paginator.nav.button.focus.ring.offset')};
}
.p-paginator-page:not(.p-disabled):not(.p-paginator-page-active):hover,
.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover,
.p-paginator-first:not(.p-disabled):hover,
.p-paginator-prev:not(.p-disabled):hover,
.p-paginator-next:not(.p-disabled):hover,
Expand All @@ -64,6 +64,11 @@ const theme = ({ dt }) => `
color: ${dt('paginator.nav.button.hover.color')};
}
.p-paginator-page.p-paginator-page-selected {
background: ${dt('paginator.nav.button.selected.background')};
color: ${dt('paginator.nav.button.selected.color')};
}
.p-paginator-current {
color: ${dt('paginator.current.page.report.color')};
}
Expand All @@ -74,13 +79,8 @@ const theme = ({ dt }) => `
gap: ${dt('paginator.gap')};
}
.p-paginator-page.p-paginator-page-active {
background: ${dt('highlight.background')};
color: ${dt('highlight.color')};
}
.p-paginator-jtp-input .p-inputtext {
max-width: 2.5rem;
max-width: ${dt('paginator.jump.to.page.input.max.width')};
}
`;

Expand Down Expand Up @@ -126,7 +126,7 @@ const classes = {
page: ({ props, pageLink }) => [
'p-paginator-page',
{
'p-paginator-page-active': pageLink - 1 === props.page
'p-paginator-page-selected': pageLink - 1 === props.page
}
],
current: 'p-paginator-current',
Expand Down
3 changes: 3 additions & 0 deletions components/lib/themes/aura/paginator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ export default {
transitionDuration: '{transition.duration}'
},
navButton: {
background: 'transparent',
hoverBackground: '{content.hover.background}',
selectedBackground: '{highlight.background}',
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}',
selectedColor: '{highlight.color}',
width: '2.5rem',
height: '2.5rem',
borderRadius: '50%',
Expand Down
3 changes: 3 additions & 0 deletions components/lib/themes/lara/paginator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ export default {
transitionDuration: '{transition.duration}'
},
navButton: {
background: 'transparent',
hoverBackground: '{content.hover.background}',
selectedBackground: '{highlight.background}',
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}',
selectedColor: '{highlight.color}',
width: '2.5rem',
height: '2.5rem',
borderRadius: '50%',
Expand Down
7 changes: 5 additions & 2 deletions components/lib/themes/nora/paginator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ export default {
transitionDuration: '{transition.duration}'
},
navButton: {
background: 'transparent',
hoverBackground: '{content.hover.background}',
color: '{text.color}',
hoverColor: '{text.color}',
selectedBackground: '{highlight.background}',
color: '{text.muted.color}',
hoverColor: '{text.hover.muted.color}',
selectedColor: '{highlight.color}',
width: '2.5rem',
height: '2.5rem',
borderRadius: '{content.border.radius}',
Expand Down

0 comments on commit a2db31a

Please sign in to comment.