mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
fix(table): restore dropdown arrow visibility on paginated table page… (#39305)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user