Skip to content

Custom class on select overlay #3292

@robianmcd

Description

@robianmcd

Bug, feature request, or proposal:

feature request

What is the desired behavior?

There would be a way to specity a custom class on the overlay for a select element. e.g.

<md-select overlayClass="my-theme-1"></md-select>

What is the current behavior?

No way to add a custom class to the overlay for a select

What is the use-case or motivation for changing an existing behavior?

I'm using multiple themes in the way described in the guide .e.g.

@include angular-material-theme($defaultTheme);

.my-theme-1 {
  @include angular-material-theme($myTheme1);
}

.my-theme-2 {
  @include angular-material-theme($myTheme2);
}

So if I have a select inside an element with class="my-theme-1" I would want the select to get the styles form $myTheme1.

<div class="my-theme-1">
  <md-select></md-select>
</div>

This doesn't work for the select's overlay as the overlay is appended to the body.

Which versions of Angular, Material, OS, browsers are affected?

Material: beta-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions