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.

md-dialog not using md-theme #742

Closed
Closed
@prasannapattam

Description

@prasannapattam

I am using grey theme and I defined it on the body. In the dialog, except cancel button none of the elements are using the grey theme. All elements are using the md-default-theme. Only the cancel button is using the md-grey-theme.

Here is the generated html:

<md-dialog aria-label="" class="md-default-theme" role="dialog"><md-content class="md-default-theme">
<h2 class="ng-binding">Do you want to cancel and loose your changes?</h2>
<p class="ng-binding">
    Clicking yes will loose your changes
</p>
</md-content>
<div class="md-actions">
    <!-- ngIf: dialog.$type == 'confirm' -->
    <button class="md-raised md-button ng-scope md-grey-theme" ng-transclude="" ng-if="dialog.$type == 'confirm'" ng-click="dialog.abort()" tabindex="0" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><span class="ng-binding ng-scope">No</span></button>
    <!-- end ngIf: dialog.$type == 'confirm' -->
    <button class="md-raised md-primary md-button md-default-theme" ng-transclude="" ng-click="dialog.hide()" tabindex="0" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><span class="ng-binding ng-scope">Yes</span></button>
</div>
</md-dialog>

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