Skip to content

Commit

Permalink
Changed .ant-tooltip-open to block and tooltip placement to topLeft
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Oct 13, 2021
1 parent 2e9f67c commit 0092041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default class FilterableTable extends PureComponent<
? 'header-style-disabled'
: 'header-style';
return (
<Tooltip id="header-tooltip" title={label}>
<Tooltip id="header-tooltip" title={label} placement="topLeft">
<div className={className}>
{label}
{sortBy === dataKey && (
Expand All @@ -385,7 +385,7 @@ export default class FilterableTable extends PureComponent<
? 'header-style-disabled'
: 'header-style';
return (
<Tooltip key={key} id="header-tooltip" title={label}>
<Tooltip key={key} id="header-tooltip" title={label} placement="topLeft">
<div
style={{
...style,
Expand All @@ -396,7 +396,7 @@ export default class FilterableTable extends PureComponent<
}}
className={`${className} grid-cell grid-header-cell`}
>
<div css={{ width: 'max-content' }}>{label}</div>
<div>{label}</div>
</div>
</Tooltip>
);
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Tooltip = (props: TooltipProps) => {
<Global
styles={css`
.ant-tooltip-open {
display: inline-block;
display: block;
&::after {
content: '';
display: block;
Expand Down

0 comments on commit 0092041

Please sign in to comment.