You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the Material Design page of Dialogs (https://material.io/components/dialogs#anatomy) one can see that the Dialog's content text (in the Anatomy example this is labeled as Supporting text) is displayed in a lighter gray than the title.
I would expect the dialog's content to be in a lighter gray than the title. When looking at the Angular Material Theme Color Configuration I would expect this to be:
Description
When looking at the Material Design page of Dialogs (https://material.io/components/dialogs#anatomy) one can see that the Dialog's content text (in the Anatomy example this is labeled as Supporting text) is displayed in a lighter gray than the title.
Reproduction
Repository: https://github.com/c-kunz/mat-dialog-content-secondary-text
Steps to reproduce:
git clone https://github.com/c-kunz/mat-dialog-content-secondary-text repro
cd repro
npm i
ng serve -o
Expected Behavior
I would expect the dialog's content to be in a lighter gray than the title. When looking at the Angular Material Theme Color Configuration I would expect this to be:
theme-or-color-config: foreground: secondary-text
.Actual Behavior
The dialog's content text color is the same as the title's color (
rgba(0,0,0, 0.87)
).Workaround attempt
I've tried to find a fitting CSS class as described in here, but with no luck: https://material.angular.io/guide/typography#material-typography-in-your-custom-css
I've tried to do the following:
But this causes every text to be displayed in that
secondary-text
, even inmat-form-fields
where I want the darker variant so it can be read better.Environment
The text was updated successfully, but these errors were encountered: