From 2fd7e621eadcb827691888b4a16681b37d3c8a0f Mon Sep 17 00:00:00 2001 From: Shatrughan Mishra Date: Wed, 4 Nov 2026 01:48:37 +0530 Subject: [PATCH 1/2] fix(theme): increase tooltip font size Signed-off-by: Shatrughan Mishra --- src/__testing__/theme.test.ts | 29 ++++++++++++++++++++---- src/theme/components/tooltip.modifier.ts | 4 +++- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/__testing__/theme.test.ts b/src/__testing__/theme.test.ts index 20c6a58d7..582739bc3 100644 --- a/src/__testing__/theme.test.ts +++ b/src/__testing__/theme.test.ts @@ -4,6 +4,7 @@ import { SistentDefaultPrimitivePaletteLight } from '../theme'; import { MuiButton } from '../theme/components/button.modifier'; +import { MuiTooltip } from '../theme/components/tooltip.modifier'; const LIGHT_INK = SistentDefaultPrimitivePaletteLight.primaryInverted; // charcoal[100] ≈ near-white const DARK_INK = SistentDefaultPrimitivePaletteLight.foreground; // charcoal[10] ≈ near-black @@ -89,7 +90,9 @@ describe('MuiButton contained honors the semantic color prop', () => { // assertions read the resolved backgroundColor per contained variant. const rootStyles = (mode: 'light' | 'dark') => { const theme = createCustomTheme(mode); - const root = MuiButton.styleOverrides!.root as (arg: { theme: typeof theme }) => Record< + const root = MuiButton.styleOverrides!.root as (arg: { + theme: typeof theme; + }) => Record< string, { color?: string; backgroundColor?: string; ['&:hover']?: { backgroundColor?: string } } >; @@ -104,9 +107,7 @@ describe('MuiButton contained honors the semantic color prop', () => { expect(containedError).toBeDefined(); // Uses the semantic error background... expect(containedError.backgroundColor).toBe(theme.palette.background.error.default); - expect(containedError['&:hover']?.backgroundColor).toBe( - theme.palette.background.error.hover - ); + expect(containedError['&:hover']?.backgroundColor).toBe(theme.palette.background.error.hover); // ...and is NOT the brand background that `&.MuiButton-contained` sets - the // regression that made `