Content-Length: 273399 | pFad | http://github.com/angular/components/pull/31022/files

F2 fix(material/select): remove internal-only M2 styles by andrewseguin · Pull Request #31022 · angular/components · GitHub
Skip to content

fix(material/select): remove internal-only M2 styles #31022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/material/select/_m2-select.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@use 'sass:map';
@use '../core/tokens/m2-utils';
@use '../core/theming/inspection';
@use '../core/theming/theming';
@use '../core/style/elevation';
Expand All @@ -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),
Expand Down
Loading








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/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy