Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: table footer background color #2303

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const _TablePagination = ({
currentPage: controlledCurrentPage,
onPageChange,
onPageSizeChange,
backgroundColor = tablePagination.backgroundColor,
defaultPageSize = tablePagination.defaultPageSize,
showPageSizePicker = true,
showPageNumberSelector = false,
Expand Down Expand Up @@ -242,7 +243,7 @@ const _TablePagination = ({
display="flex"
flexDirection="row"
padding={tablePagination.padding}
backgroundColor={tablePagination.backgroundColor}
saurabhdaware marked this conversation as resolved.
Show resolved Hide resolved
backgroundColor={backgroundColor}
Sumitmaithani marked this conversation as resolved.
Show resolved Hide resolved
>
{showLabel && !onMobile && (
<BaseBox display="flex" justifyContent="center" alignItems="center">
Expand Down
5 changes: 5 additions & 0 deletions packages/blade/src/components/Table/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ type TablePaginationCommonProps = {
* @default false
*/
showLabel?: boolean;
/**
* The background color of the component.
* @default transparent
*/
backgroundColor?: string;
Sumitmaithani marked this conversation as resolved.
Show resolved Hide resolved
};

type TablePaginationType = 'client' | 'server';
Expand Down