From 322a55f6c9d595bd063b10b4f441ba6a9cd05c52 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 2 May 2025 16:14:09 -0600 Subject: [PATCH 1/2] fix(material/dialog): remove internal-only M2 styles --- src/material/dialog/_m2-dialog.scss | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/material/dialog/_m2-dialog.scss b/src/material/dialog/_m2-dialog.scss index d4f21b102575..45195e94facb 100644 --- a/src/material/dialog/_m2-dialog.scss +++ b/src/material/dialog/_m2-dialog.scss @@ -26,13 +26,7 @@ // Tokens that can be configured through Angular Material's color theming API. @function get-color-tokens($theme) { $is-dark: inspection.get-theme-type($theme) == dark; - - // Ideally we would derive all values directly from the theme, but it causes a lot of regressions - // internally. For now we fall back to the old hardcoded behavior only for internal apps. - $text-base: if(m2-utils.$private-is-internal-build, - if($is-dark, #fff, #000), - inspection.get-theme-color($theme, foreground, text, 1) - ); + $text-base: inspection.get-theme-color($theme, foreground, text, 1); @return ( dialog-container-color: inspection.get-theme-color($theme, system, surface), From fe88684133762bcdc659fa2b1d0569ea8fb5f6ab Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Thu, 22 May 2025 20:11:49 -0600 Subject: [PATCH 2/2] refactor: lint --- src/material/dialog/_m2-dialog.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/src/material/dialog/_m2-dialog.scss b/src/material/dialog/_m2-dialog.scss index 45195e94facb..abee3b35aa3a 100644 --- a/src/material/dialog/_m2-dialog.scss +++ b/src/material/dialog/_m2-dialog.scss @@ -1,4 +1,3 @@ -@use '../core/tokens/m2-utils'; @use '../core/style/elevation'; @use '../core/style/sass-utils'; @use '../core/theming/inspection';