Skip to content

Commit a24081f

Browse files
andrewseguinAndrew Seguin
and
Andrew Seguin
authored
fix(material/dialog): remove internal-only M2 styles (#31020)
* fix(material/dialog): remove internal-only M2 styles * refactor: lint --------- Co-authored-by: Andrew Seguin <[email protected]>
1 parent 9a96db3 commit a24081f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/material/dialog/_m2-dialog.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@use '../core/tokens/m2-utils';
21
@use '../core/style/elevation';
32
@use '../core/style/sass-utils';
43
@use '../core/theming/inspection';
@@ -26,13 +25,7 @@
2625
// Tokens that can be configured through Angular Material's color theming API.
2726
@function get-color-tokens($theme) {
2827
$is-dark: inspection.get-theme-type($theme) == dark;
29-
30-
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
31-
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
32-
$text-base: if(m2-utils.$private-is-internal-build,
33-
if($is-dark, #fff, #000),
34-
inspection.get-theme-color($theme, foreground, text, 1)
35-
);
28+
$text-base: inspection.get-theme-color($theme, foreground, text, 1);
3629

3730
@return (
3831
dialog-container-color: inspection.get-theme-color($theme, system, surface),

0 commit comments

Comments
 (0)