Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Applying pseudo styles on checkboxes using style extensions not working as expected

Summary:

We have a requirement where we need to change the style of the checkbox as per the customer branding.

 

We are successfully able to modify some of properties of checkboxes(e.g., color, background etc.) using Styling extension.

However, when we try to change the pseudo properties(:selected, :before etc.) in checkbox css, it is not working. Please find the css here

 

Jav

ascript Extension Code

 

OraclePolicyAutomation.AddExtension({

  style: {        

    checkboxInput: {

className: "checkboxstyle", //refer below for css file

style:{

color: "blue"                        

},       

}

}

});

 

 

 

Checkboxstyle.css

 

.checkboxstyle {

background: #0d6efd;

}

 

div[role=checkbox]{

 visibility: hidden;

 position: absolute;

}

div[role=checkbox] + label:before{

 height:12px;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!