From d872455c4be56022da2095349b30ef46e0b55bc3 Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Wed, 4 Nov 2026 12:38:16 -0800 Subject: [PATCH] fix(testing): apply theme-dependent default text color in cells This PR causes `` to apply a light/dark-dependent default text color to its test content cells so that `currentColor` is appropriate for the cell background, which already depends on the theme. This makes test content using `currentColor` alone for styling, without explicitly applying a Material color CSS variable to is own text, to be compatible with ``. PiperOrigin-RevId: 1014054588 --- testing/table/internal/_test-table.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/testing/table/internal/_test-table.scss b/testing/table/internal/_test-table.scss index 55a3ecf8d5..22c71d4b41 100644 --- a/testing/table/internal/_test-table.scss +++ b/testing/table/internal/_test-table.scss @@ -55,14 +55,12 @@ $dark-theme: tokens.md-comp-test-table-values( border: 1px solid; padding: 16px; position: var(--_cell-position); + color: var(--_cell-text-color); &::before { background-color: var(--_cell-color); - background-image: linear-gradient( - to right, - var(--_cell-grid-color) 1px, - transparent 1px - ), + background-image: + linear-gradient(to right, var(--_cell-grid-color) 1px, transparent 1px), linear-gradient(to bottom, var(--_cell-grid-color) 1px, transparent 1px); background-size: 16px 16px; inset: -1px 0 0 -1px;