spmodal.confirm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2018 07:21 AM
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
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2018 07:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2018 10:07 PM
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;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2018 01:41 AM
Then the next step is to write your own modal popup.
A fun little side project 🙂
Good luck.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2019 08:08 AM
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