diff --git a/src/theme/__tests__/__snapshots__/theme.test.ts.snap b/src/theme/__tests__/__snapshots__/theme.test.ts.snap
index 47a4ecea6e..f1d63da808 100644
--- a/src/theme/__tests__/__snapshots__/theme.test.ts.snap
+++ b/src/theme/__tests__/__snapshots__/theme.test.ts.snap
@@ -2473,12 +2473,10 @@ Object {
"stylePreset": "toastNeutral",
},
"tooltip": Object {
- "panel": Object {
- "paddingBlock": "spaceInset020",
- "paddingInline": "spaceInset020",
- "stylePreset": "tooltipPanel",
- "typographyPreset": "utilityLabel010",
- },
+ "paddingBlock": "spaceInset020",
+ "paddingInline": "spaceInset020",
+ "stylePreset": "tooltip",
+ "typographyPreset": "utilityLabel010",
"zIndex": 80,
},
"unorderedList": Object {
@@ -4631,7 +4629,7 @@ Object {
"iconColor": "{{colors.inkInverse}}",
},
},
- "tooltipPanel": Object {
+ "tooltip": Object {
"base": Object {
"backgroundColor": "{{colors.interface060}}",
"borderRadius": "{{borders.borderRadiusDefault}}",
diff --git a/src/tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap b/src/tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap
index 8fdeee0fd6..cd85821e33 100644
--- a/src/tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap
+++ b/src/tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap
@@ -11,9 +11,6 @@ exports[`Tooltip should render correct styles: default 1`] = `
.emotion-0 {
pointer-events: none;
z-index: 80;
-}
-
-.emotion-1 {
background-color: #0A0A0A;
color: #FFFFFF;
border-radius: 8px;
@@ -34,11 +31,7 @@ exports[`Tooltip should render correct styles: default 1`] = `
style="position: absolute;"
tabindex="-1"
>
-
- hello
-
+ hello
`;
@@ -56,9 +49,6 @@ exports[`Tooltip should render correct styles: with overrides 1`] = `
z-index: 70;
max-width: 80px;
min-width: 50px;
-}
-
-.emotion-1 {
background-color: #EF1703;
border-radius: 0;
color: #0A0A0A;
@@ -79,11 +69,7 @@ exports[`Tooltip should render correct styles: with overrides 1`] = `
style="position: absolute;"
tabindex="-1"
>
-
- hello
-
+ hello
`;
diff --git a/src/tooltip/__tests__/tooltip.stories.tsx b/src/tooltip/__tests__/tooltip.stories.tsx
index 28a5a9edbd..29860dd703 100644
--- a/src/tooltip/__tests__/tooltip.stories.tsx
+++ b/src/tooltip/__tests__/tooltip.stories.tsx
@@ -23,7 +23,7 @@ const myCustomTheme = createTheme({
name: 'my-custom-modal-theme',
overrides: {
stylePresets: {
- tooltipPanelCustom: {
+ tooltipCustom: {
base: {
backgroundColor: '{{colors.red080}}',
borderRadius: '{{borders.borderRadiusDefault}}',
@@ -273,7 +273,7 @@ export const StoryTooltipAccessibility = () => (
Tooltip as a label
-
+
(
overrides={{
minWidth: '50px',
maxWidth: '80px',
- zIndex: 80,
- panel: {
- paddingBlock: 'space040',
- paddingInline: 'space020',
- stylePreset: 'tooltipPanelCustom',
- typographyPreset: 'utilityLabel020',
- },
+ zIndex: 70,
+ paddingBlock: 'space040',
+ paddingInline: 'space020',
+ stylePreset: 'tooltipCustom',
+ typographyPreset: 'utilityLabel020',
}}
>