Skip to content
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

Button not primary and disabled inside cards doesn't looks like disabled #2086

Open
ndesorden opened this issue Jun 26, 2019 · 0 comments
Open

Comments

@ndesorden
Copy link

ndesorden commented Jun 26, 2019

<md-card-actions>
  <md-button disabled>Not looking disabled </md-button>
  <md-button disabled class="md-primary">Yeah, looks disabled</md-button>
</md-card-actions>

This rule overrides the default disabled styles:

.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent) {
    color: var(--md-theme-default-text-primary-on-background, rgba(0,0,0,0.87));
}

.md-button.md-theme-default[disabled] {
    color: var(--md-theme-default-disabled-on-background, rgba(0,0,0,0.26));
}

My current dirty fix:

.md-card.md-theme-default .md-card-actions 
.md-button[disabled]:not(.md-primary):not(.md-accent) {
        @extend .md-button.md-theme-default[disabled];
 }
@ndesorden ndesorden changed the title Button not primary and disabled inside cards doesnt looks like disabled Button not primary and disabled inside cards doesn't looks like disabled Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant