Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Cannot set md-hue-* on md-content background #1321

Closed

Description

@hodeyp

I have setup a theme as...

$mdThemingProvider.theme('default')
    .primaryPalette('blue')
    .accentPalette('green')
    .warnPalette('red')
    .backgroundPalette('yellow',{
        'default' : '50',
        'hue-1'   : '100',
        'hue-2'   : '200',
        'hue-3'   : '300',
    }); 

However when looking at the css the md-hue-1, md-hue-2, md-hue-3 all have the same background color...

md-content.md-default-theme {
    background-color: rgb(255,241,118);
}

md-content.md-default-theme.md-hue-1 {
    background-color: rgb(255,241,118);
}

md-content.md-default-theme.md-hue-2 {
    background-color: rgb(255,241,118);
}

md-content.md-default-theme.md-hue-3 {
    background-color: rgb(255,241,118);
}

Is this expected behaviour? I want to be able to set a master md-content with a pale grey background and then child content containers to have a white background. It does not seem possible to achieve this at present without inserting my own css?

Activity

  1. hodeyp commented on Jan 28, 2015

    @hodeyp
    Author

    I've researched this some more and have discovered that the md-content css background color is always set to md-hue-3, irrespective of which md-hue-* is defined in the html or in fact if a hue is not specified. This does not seem right?

  2. modified the milestone: 0.9.0 on Feb 17, 2015
  3. robertmain commented on Mar 15, 2015

    @robertmain

    Weighing in on this issue to say that I'm having the same problem

  4. arshabh commented on Mar 17, 2015

    @arshabh
    Contributor

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions