diff --git a/packages/core/docs/vibe-3-changelog.md b/packages/core/docs/vibe-3-changelog.md index bd24100752..bf9073a34d 100644 --- a/packages/core/docs/vibe-3-changelog.md +++ b/packages/core/docs/vibe-3-changelog.md @@ -1 +1,4 @@ # Vibe 3 Changelog + +## Tooltip +- Remove paddingSize prop \ No newline at end of file diff --git a/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-non-ranged.test.js.snap b/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-non-ranged.test.js.snap index 4ee6b30264..2228107e47 100644 --- a/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-non-ranged.test.js.snap +++ b/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-non-ranged.test.js.snap @@ -57,12 +57,12 @@ Snapshot Diff: + class="contentComponent top edgeCenter hasTooltip" + > +
+ 20% +
+
@@ -92,12 +92,12 @@ Snapshot Diff: - class="contentComponent top edgeCenter hasTooltip" - > -
- 20% -
-
@@ -127,12 +127,12 @@ Snapshot Diff: + class="contentComponent top edgeCenter hasTooltip" + > +
+ 20% +
+
@@ -162,12 +162,12 @@ Snapshot Diff: - class="contentComponent top edgeCenter hasTooltip expandAppear expandAppearActive" - > -
- 20% -
-
diff --git a/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-ranged.test.js.snap b/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-ranged.test.js.snap index 5afb4252be..7916679038 100644 --- a/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-ranged.test.js.snap +++ b/packages/core/src/components/Slider/__tests__/__snapshots__/Slider-ranged.test.js.snap @@ -68,12 +68,12 @@ Snapshot Diff: + class="contentComponent top edgeCenter hasTooltip" + > +
+ 25% +
+
@@ -103,12 +103,12 @@ Snapshot Diff: + class="contentComponent top edgeCenter hasTooltip" + > +
+ 65% +
+
@@ -138,12 +138,12 @@ Snapshot Diff: - class="contentComponent top edgeCenter hasTooltip" - > -
- 25% -
-
@@ -173,12 +173,12 @@ Snapshot Diff: + class="contentComponent top edgeCenter hasTooltip" + > +
+ 25% +
+
@@ -220,13 +220,13 @@ Snapshot Diff: - 25% + 65%
@@ -283,12 +283,12 @@ Snapshot Diff: - class="contentComponent top edgeCenter hasTooltip expandAppear expandAppearActive" - > -
- 65% -
-
diff --git a/packages/core/src/components/Tipseen/__tests__/__snapshots__/Tipseen.test.js.snap b/packages/core/src/components/Tipseen/__tests__/__snapshots__/Tipseen.test.js.snap index 06650c2aa3..7a1db5021f 100644 --- a/packages/core/src/components/Tipseen/__tests__/__snapshots__/Tipseen.test.js.snap +++ b/packages/core/src/components/Tipseen/__tests__/__snapshots__/Tipseen.test.js.snap @@ -158,7 +158,7 @@ exports[`Snapshot tests Tipseen tests renders correctly with dark close button t className="contentComponent bottom edgeCenter hasTooltip" >
@@ -214,7 +214,7 @@ exports[`Snapshot tests Tipseen tests renders correctly with dark close button t
@@ -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
@@ -411,7 +411,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close 1`] = `
@@ -512,7 +512,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without props 1`] = `
{ } 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 {