mirror of
https://github.com/apache/superset.git
synced 2026-06-08 00:59:17 +00:00
fix(Explore): Show the tooltip only when label does not fit the container in METRICS/FILTERS/GROUP BY/SORT BY of the DATA panel (#16060)
* Implement dynamic tooltip * Normalize and consolidate * Clean up * Refactor and clean up * Remove unnecessary var * Fix type import * Update superset-frontend/src/explore/components/controls/OptionControls/index.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Remove unnecessary styled span * Show full tooltip title * Force show tooltip * Force show tooltip D&D off Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -28,9 +28,8 @@ test('renders with default props', () => {
|
||||
clickClose={jest.fn()}
|
||||
type={'Column' as DndItemType}
|
||||
onShiftOptions={jest.fn()}
|
||||
>
|
||||
Option
|
||||
</OptionWrapper>,
|
||||
label="Option"
|
||||
/>,
|
||||
{ useDnd: true },
|
||||
);
|
||||
expect(container).toBeInTheDocument();
|
||||
@@ -46,17 +45,15 @@ test('triggers onShiftOptions on drop', () => {
|
||||
clickClose={jest.fn()}
|
||||
type={'Column' as DndItemType}
|
||||
onShiftOptions={onShiftOptions}
|
||||
>
|
||||
Option 1
|
||||
</OptionWrapper>
|
||||
label="Option 1"
|
||||
/>
|
||||
<OptionWrapper
|
||||
index={2}
|
||||
clickClose={jest.fn()}
|
||||
type={'Column' as DndItemType}
|
||||
onShiftOptions={onShiftOptions}
|
||||
>
|
||||
Option 2
|
||||
</OptionWrapper>
|
||||
label="Option 2"
|
||||
/>
|
||||
</>,
|
||||
{ useDnd: true },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user