diff --git a/regression-test/src/app/custom-icons/page.tsx b/regression-test/src/app/custom-icons/page.tsx index 9d9b5708fe..d296e5943f 100644 --- a/regression-test/src/app/custom-icons/page.tsx +++ b/regression-test/src/app/custom-icons/page.tsx @@ -97,7 +97,7 @@ function IconGrid({ {name.replace('InstUIIcon_', '')} @@ -121,7 +121,7 @@ function SizeRow({ {SIZES.map((size) => (
- + {size}
@@ -132,7 +132,7 @@ function SizeRow({ function SectionHeader({ children }: { children: React.ReactNode }) { return ( -

+

{children}

) diff --git a/regression-test/src/app/layout.tsx b/regression-test/src/app/layout.tsx index 19a49e4066..bf0f2d3cdd 100644 --- a/regression-test/src/app/layout.tsx +++ b/regression-test/src/app/layout.tsx @@ -87,6 +87,12 @@ export default function RootLayout({ ? newTheme.semantics(newTheme.primitives) : newTheme?.semantics const pageBackground = semantics?.color?.background?.page ?? 'transparent' + // Pair the surface with the theme's own text color. Painting only the + // background leaves inherited text at its default dark value, which on the + // dark theme's near-black surface is a serious color-contrast violation for + // every plain label on these pages and for any component using + // `color="inherit"`. + const pageColor = semantics?.color?.text?.base ?? 'inherit' return ( // we need to make a new Map to reset counting on the server side @@ -94,7 +100,7 @@ export default function RootLayout({ Component visual and regression test suite @@ -111,7 +117,11 @@ export default function RootLayout({ in the captured baselines. */} {children} diff --git a/regression-test/src/app/small-components/page.tsx b/regression-test/src/app/small-components/page.tsx index 38d07a9cad..be8618fd63 100644 --- a/regression-test/src/app/small-components/page.tsx +++ b/regression-test/src/app/small-components/page.tsx @@ -121,7 +121,7 @@ export default function SmallComponentsPage() { contentImportant
- + inherit contentQuote @@ -138,10 +138,14 @@ export default function SmallComponentsPage() { I'm warning text I'm danger text I'm an ai-highlight text - I'm primary-inverse text + + I'm primary-inverse text +
- I'm secondary-inverse text + + I'm secondary-inverse text + I'm primary-on text I'm secondary-on text
diff --git a/regression-test/src/app/tooltip/page.tsx b/regression-test/src/app/tooltip/page.tsx index d36f4523f5..05053d2c42 100644 --- a/regression-test/src/app/tooltip/page.tsx +++ b/regression-test/src/app/tooltip/page.tsx @@ -145,7 +145,14 @@ export default function TooltipPage() { Flex Three , - + , Default Heading,