fix(table): restore dropdown arrow visibility on paginated table page… (#39305)

This commit is contained in:
Jean Massucatto
2026-04-30 09:56:51 -03:00
committed by GitHub
parent df396aa6e9
commit 9c3c8dcc0b
2 changed files with 24 additions and 0 deletions

View File

@@ -98,6 +98,11 @@ export default styled.div`
background-color: ${theme.colorBgLayout};
}
.dt-select-page-size .ant-select .ant-select-arrow {
color: ${theme.colorTextQuaternary};
z-index: 11;
}
/* Controls and metrics */
.dt-controls {
padding-bottom: 0.65em;

View File

@@ -1937,6 +1937,25 @@ describe('plugin-chart-table', () => {
expect(clearCall![0].extraFormData.filters).toEqual([]);
});
test('page size selector arrow stays above resize handles (#39305)', () => {
// .resize-handle elements in dashboard ResizableContainer sit at
// z-index: 10 — the page size arrow must stack above them or it
// gets covered on dashboard charts.
const { container } = render(
ProviderWrapper({
children: (
<TableChart {...transformProps(testData.basic)} sticky={false} />
),
}),
);
const arrow = container.querySelector(
'.dt-select-page-size .ant-select .ant-select-arrow',
);
expect(arrow).not.toBeNull();
expect(getComputedStyle(arrow as HTMLElement).zIndex).toBe('11');
});
test('recalculates totals when user filters data', async () => {
const formDataWithTotals = {
...testData.basic.formData,