-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Overlay incorrect text colours #4116
Comments
Are you noticing this theme discrepancy only in overlay-based components? I see one of two things happening:
https://material.angular.io/guide/theming#multiple-themes-and-overlay-based-components
|
Got it, thanks, I think the select issue I ran into was probably just a symptom of #4077 and had nothing to do with being an overlay. (I'd thought it was possibly related to being an overlay because of the overlay theme class thing you mentioned, but that shouldn't be an issue here since it's my global theme that isn't being fully applied.) That said, as far as the dialog issue, I see that src/lib/dialog/_dialog-theme.scss only sets the Also related, is it intentional that |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Not sure whether there's a common root cause related to overlays or this is just multiple independent instances of the same type of bug, so I'm just putting it all in one ticket if that's all right.
In some cases the foreground text colour is being ignored, which is particularly noticeable with a dark theme as it leads to dark text on a dark background. The rest of my theme is being applied correctly, so I'm guessing that this is just an oversight in the relevant component stylesheets.
What is the expected behavior?
Theme text colour should be consistently applied.
What is the current behavior?
When opening a dialog, the text colour is the same as my browser's default, rather than being set to (in this case)
map-get($mat-dark-theme-foreground, text)
.When opening a select, the non-selected options have the same issue as the dialog.
What are the steps to reproduce?
Open a select or dialog.
What is the use-case or motivation for changing an existing behavior?
Theming correctness.
Which versions of Angular, Material, OS, browsers are affected?
Tested with 2.0.0-beta.3.
The text was updated successfully, but these errors were encountered: