html - Change angular-material for a $mdDialog -


i want remove gray background when hover on 'yes' , 'no' buttons of $mddialog. have managed change color of text changing in angular-material.css. ideas?

here pic of 'no' , 'yes' buttons referring to:

enter image description here

first of all, not modify original sources of library. once decide update newer version, of changes lost. better practice override original styles own. in order that, create separate css file , add site after angular-material.css.

to modify background color of buttons in dialog, need following code:

md-dialog .md-button:not([disabled]):hover {     background-color: transparent !important; } 

.md-button:not([disabled]):hover class responsible styling hover color of md-button controls. in case, !important needed override original color of buttons. finally, md-dialog @ beginning ensures styles applied inside dialogs.

update 1 - alternative solution

another more complicated solution creating custom confirmation dialog. way can change appearence of dialog using own template. can find more custom dialogs in angular material documentation:

https://material.angularjs.org/latest/demo/dialog


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -