Skip to content

Commit 61928ae

Browse files
authored
DataGrid - Summary row displays a partial and thinner highlight border than expected (T1297876) (#30966)
1 parent 8b5bbbb commit 61928ae

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed
7 KB
Loading

e2e/testcafe-devextreme/tests/dataGrid/common/summary.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,42 @@ test('Total summary should be focusable', async (t) => {
7070
},
7171
}));
7272

73+
test('Focused total summary should have right appearance with sticky columns', async (t) => {
74+
const dataGrid = new DataGrid('#container');
75+
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
76+
77+
await t.click(dataGrid.getDataRow(3).element);
78+
await t
79+
.pressKey('tab');
80+
81+
await t
82+
.expect(await takeScreenshot('total-summary-focused-with-sticky.png', dataGrid.element)).ok()
83+
.expect(compareResults.isValid()).ok(compareResults.errorMessages());
84+
}).before(async () => createWidget('dxDataGrid', {
85+
dataSource: [
86+
{ id: 1, value1: 1, value2: 2 },
87+
{ id: 2, value1: 1, value2: 2 },
88+
{ id: 3, value1: 1, value2: 2 },
89+
{ id: 4, value1: 1, value2: 2 },
90+
],
91+
columns: [
92+
{ dataField: 'value1', fixed: true },
93+
{ dataField: 'value2' },
94+
],
95+
summary: {
96+
totalItems: [
97+
{
98+
column: 'value1',
99+
summaryType: 'count',
100+
},
101+
{
102+
column: 'value2',
103+
summaryType: 'count',
104+
},
105+
],
106+
},
107+
}));
108+
73109
test('Group footer navigation should work without keyboard trap', async (t) => {
74110
const dataGrid = new DataGrid('#container');
75111

packages/devextreme-scss/scss/widgets/base/dataGrid/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ $datagrid-text-stub-background-image-path: null !default;
220220
padding-inline: 0;
221221

222222
.dx-datagrid-summary-item {
223-
background-color: $datagrid-base-background-color;
224223
padding-inline: $datagrid-cell-padding;
225224
}
226225
}

0 commit comments

Comments
 (0)