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:
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:
Comments
Post a Comment