Skip to content

Commit

Permalink
wrap in div to enable tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 20, 2024
1 parent 59de8b3 commit 6f7bef7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Label/Label.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ test('works with an onClick handler', () => {
test('renders all the storybook gallery variants', () => {
const { container } = render(<LabelGallery />);
expect(container.querySelectorAll('.ant-tag')).toHaveLength(
options.length * 2,
options.length * 2 + 4,
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ export default class PublishedStatus extends Component<DashboardPublishedStatusT
placement="bottom"
title={draftButtonTooltip}
>
<PublishedLabel
isPublished={isPublished}
onClick={this.togglePublished}
/>
<div>
<PublishedLabel
isPublished={isPublished}
onClick={this.togglePublished}
/>
</div>
</Tooltip>
);
}
Expand All @@ -80,7 +82,9 @@ export default class PublishedStatus extends Component<DashboardPublishedStatusT
placement="bottom"
title={draftDivTooltip}
>
<PublishedLabel isPublished={isPublished} />
<div>
<PublishedLabel isPublished={isPublished} />
</div>
</Tooltip>
);
}
Expand All @@ -93,10 +97,12 @@ export default class PublishedStatus extends Component<DashboardPublishedStatusT
placement="bottom"
title={publishedTooltip}
>
<PublishedLabel
isPublished={isPublished}
onClick={this.togglePublished}
/>
<div>
<PublishedLabel
isPublished={isPublished}
onClick={this.togglePublished}
/>
</div>
</Tooltip>
);
}
Expand Down

0 comments on commit 6f7bef7

Please sign in to comment.