@@ -336,7 +336,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close - deprecat
className="contentComponent bottom edgeCenter hasTooltip"
>
@@ -351,7 +351,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close - deprecat
{
}
renderTooltipContent() {
- const { theme, content, paddingSize, className, style, withMaxWidth, title, image, icon } = this.props;
+ const { theme, content, className, style, withMaxWidth, title, image, icon } = this.props;
if (!content) {
// don't render empty tooltip
return null;
@@ -221,7 +220,7 @@ export default class Tooltip extends PureComponent
{
)}
>
{image && }
-
+
{title && (
{icon && }
@@ -241,7 +240,6 @@ export default class Tooltip extends PureComponent {
className={cx(
styles.tooltip,
getStyle(styles, camelCase(theme)),
- getStyle(styles, camelCase("padding-size-" + paddingSize)),
{ [styles.withMaxWidth]: withMaxWidth },
className
)}
@@ -301,7 +299,6 @@ export default class Tooltip extends PureComponent {
forceRenderWithoutChildren,
getContainer,
theme,
- paddingSize,
tip,
arrowClassName,
id,
@@ -324,12 +321,7 @@ export default class Tooltip extends PureComponent {
tooltip: tip,
content,
getContainer: getContainer || this.getContainer,
- tooltipClassName: cx(
- styles.arrow,
- getStyle(styles, theme),
- getStyle(styles, camelCase("padding-size-" + paddingSize)),
- arrowClassName
- ),
+ tooltipClassName: cx(styles.arrow, getStyle(styles, theme), arrowClassName),
animationType: AnimationType.EXPAND,
onDialogDidHide: this.onTooltipHide,
onDialogDidShow: this.onTooltipShow,
diff --git a/packages/core/src/components/Tooltip/__tests__/__snapshots__/Tooltip.snapshot.test.tsx.snap b/packages/core/src/components/Tooltip/__tests__/__snapshots__/Tooltip.snapshot.test.tsx.snap
index 4b752b342c..0ca0b27087 100644
--- a/packages/core/src/components/Tooltip/__tests__/__snapshots__/Tooltip.snapshot.test.tsx.snap
+++ b/packages/core/src/components/Tooltip/__tests__/__snapshots__/Tooltip.snapshot.test.tsx.snap
@@ -30,14 +30,14 @@ exports[`Tooltip renders correctly with data-testid 1`] = `
className="contentComponent top edgeCenter hasTooltip"
>
test
test
test
test
test
test
test
@@ -407,7 +407,7 @@ exports[`Tooltip renders correctly without arrow 1`] = `
className="contentComponent top edgeCenter"
>
diff --git a/packages/core/src/constants/sizes.ts b/packages/core/src/constants/sizes.ts
index 48d0c3647c..3596d3bbe8 100644
--- a/packages/core/src/constants/sizes.ts
+++ b/packages/core/src/constants/sizes.ts
@@ -4,8 +4,6 @@ export const BASE_SIZES = {
LARGE: "large"
} as const;
-export const BASE_SIZES_WITH_NONE = { NONE: "none", ...BASE_SIZES };
-
export const SIZES = { XXS: "xxs", XS: "xs", ...BASE_SIZES } as const;
export enum BaseSizes {