spmodal.confirm

Venkat122
Kilo Guru

Hi All,

I want to change default colors for OK and Cancel buttons for the popup dialog called using spModal.confirm method. How this can be changed?

Thanks

Venkat

8 REPLIES 8

Stewe Lundin
Mega Guru

Have no way to test this at the moment but dosen't they use the selected them?

And If so then you can probably override the CSS for the buttons in your script. 

Thanks for your reply!

I have tried placing below in widget instance and page specific css but no luck. looks like, the css property is not overriding styles as the pop-up window comes from confirm() method.

 

.btn-default

{

color: red;

}

 

also tried

.btn-default

{

color: red !important;

}

Stewe Lundin
Mega Guru

Then the next step is to write your own modal popup. 

A fun little side project 🙂 

Good luck. 

Vinodha3
Giga Contributor

Hey Venkat,

 

Did this issue resolve for you? I have same requirement for my client can you suggest me what you did for this?

 

Thanks,

Vinodha