cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Apply Custom CSS on confirmation function

MG_2602
9-Granite

Apply Custom CSS on confirmation function

Hi,

 

I need to add background color to the buttons on the confirmation box.

MG_10145653_1-1642832775088.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TonyZhang
13-Aquamarine
(To:MG_2602)

Hi @MG_2602,

 

Please try below custom CSS code to see if it works.

 

ptcs-confirmation-dialog::part(primary-button) {
    background-color: red;
}
ptcs-confirmation-dialog::part(cancel-button) {
    background-color: grey;
}

 

You can also add :hover, :focus at the end of the selector to change the background color of the buttons at different states

View solution in original post

2 REPLIES 2
TonyZhang
13-Aquamarine
(To:MG_2602)

Hi @MG_2602,

 

Please try below custom CSS code to see if it works.

 

ptcs-confirmation-dialog::part(primary-button) {
    background-color: red;
}
ptcs-confirmation-dialog::part(cancel-button) {
    background-color: grey;
}

 

You can also add :hover, :focus at the end of the selector to change the background color of the buttons at different states

Top Tags