Content-Length: 2015 | pFad | http://github.com/angular/components/pull/31022.patch

thub.com From ea4df6dfdd3963a22624bd0b9247eb83d90e6b7b Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Thu, 22 May 2025 20:10:39 -0600 Subject: [PATCH] fix(material/select): remove internal-only M2 styles # Conflicts: # src/material/select/_m2-select.scss --- src/material/select/_m2-select.scss | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/material/select/_m2-select.scss b/src/material/select/_m2-select.scss index e25e44b77aa0..18f1b9e2e6eb 100644 --- a/src/material/select/_m2-select.scss +++ b/src/material/select/_m2-select.scss @@ -1,5 +1,4 @@ @use 'sass:map'; -@use '../core/tokens/m2-utils'; @use '../core/theming/inspection'; @use '../core/theming/theming'; @use '../core/style/elevation'; @@ -16,16 +15,9 @@ // Tokens that can be configured through Angular Material's color theming API. @function get-color-tokens($theme, $palette-name: primary) { $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. - $on-surface: if($is-dark, #fff, #000); - $text-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, text, 1)); - $disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, disabled-text, 1)); - $icon-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, base)); + $text-color-base: inspection.get-theme-color($theme, foreground, text, 1); + $disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1); + $icon-color-base: inspection.get-theme-color($theme, foreground, base); @return ( select-panel-background-color: inspection.get-theme-color($theme, system, surface),








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/components/pull/31022.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy