Skip to content

Commit

Permalink
Add a new button variant for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Jan 15, 2024
1 parent b60c2f7 commit 189594b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 1 addition & 3 deletions dapp/src/components/TransactionHistory/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ function Table({ data }: { data: StakeHistory[] }) {
</TableContainer>
<HStack mt={6}>
{PAGINATION_BUTTONS.map(({ ariaLabel, onClick, isDisabled, icon }) => (
// TODO: Update the button styles
<IconButton
key={ariaLabel}
variant="ghost"
background="white"
variant="pagination"
aria-label={ariaLabel}
onClick={() => onClick(table)}
isDisabled={isDisabled(table)}
Expand Down
16 changes: 16 additions & 0 deletions dapp/src/theme/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,22 @@ const Button: ComponentSingleStyleConfig = {

return defaultStyles
},
pagination: {
bg: "white",
color: "grey.700",
border: "1px solid transparent",

_hover: {
borderColor: "white",
bg: "opacity.white.6",
},
_disabled: {
color: "grey.200",
bg: "white",
opacity: 1,
pointerEvents: "none",
},
},
},
}

Expand Down
1 change: 1 addition & 0 deletions dapp/src/theme/utils/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const colors = {
opacity: {
white: {
5: "rgba(255, 255, 255, 0.50)",
6: "rgba(255, 255, 255, 0.60)",
},
grey: {
700: {
Expand Down

0 comments on commit 189594b

Please sign in to comment.