Content-Length: 295467 | pFad | http://github.com/angular/components/commit/98ede4b615a88151aa7e5bd135ee9e5b7656faac

15 fix(material/select): remove internal-only M2 styles · angular/components@98ede4b · GitHub
Skip to content

Commit 98ede4b

Browse files
author
Andrew Seguin
committed
fix(material/select): remove internal-only M2 styles
1 parent e78a0a3 commit 98ede4b

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/material/select/_m2-select.scss

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@use 'sass:map';
2-
@use '../core/tokens/m2-utils';
32
@use '../core/theming/inspection';
43
@use '../core/theming/theming';
54
@use '../core/style/elevation';
@@ -16,16 +15,9 @@
1615
// Tokens that can be configured through Angular Material's color theming API.
1716
@function get-color-tokens($theme, $palette-name: primary) {
1817
$is-dark: inspection.get-theme-type($theme) == dark;
19-
20-
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
21-
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
22-
$on-surface: if($is-dark, #fff, #000);
23-
$text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
24-
inspection.get-theme-color($theme, foreground, text, 1));
25-
$disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
26-
inspection.get-theme-color($theme, foreground, disabled-text, 1));
27-
$icon-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
28-
inspection.get-theme-color($theme, foreground, divider, 1));
18+
$text-color-base: inspection.get-theme-color($theme, foreground, text, 1);
19+
$disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1);
20+
$icon-color-base: inspection.get-theme-color($theme, foreground, divider, 1);
2921

3022
@return (
3123
select-panel-background-color: inspection.get-theme-color($theme, system, surface),

0 commit comments

Comments
 (0)








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/commit/98ede4b615a88151aa7e5bd135ee9e5b7656faac

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy