Skip to content

Commit

Permalink
fix(VDataTable): add missing footer divider and update padding
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Nov 20, 2023
1 parent d84591e commit 48c6573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/vuetify/src/components/VDataTable/VDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './VDataTable.sass'
import { makeVDataTableFooterProps, VDataTableFooter } from './VDataTableFooter'
import { makeVDataTableHeadersProps, VDataTableHeaders } from './VDataTableHeaders'
import { makeVDataTableRowsProps, VDataTableRows } from './VDataTableRows'
import { VDivider } from '@/components/VDivider'
import { makeVTableProps, VTable } from '@/components/VTable/VTable'

// Composables
Expand Down Expand Up @@ -252,6 +253,8 @@ export const VDataTable = genericComponent<new <T extends readonly any[], V>(
),
bottom: () => slots.bottom ? slots.bottom(slotProps.value) : (
<>
<VDivider />

<VDataTableFooter
{ ...dataTableFooterProps }
v-slots={{
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VDataTable/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '../../styles/settings';
@use '../../styles/tools';

$data-table-footer-padding: 0 8px !default;
$data-table-footer-padding: 4px !default;
$data-table-header-sort-badge-size: 20px !default;
$data-table-header-sort-badge-color: rgba(var(--v-border-color), var(--v-border-opacity)) !default;

0 comments on commit 48c6573

Please sign in to comment.