Skip to content

Overlay incorrect text colours #4116

@buu700

Description

@buu700

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions