Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Focus is invisible for the Accessibility users

SA-95967

Summary

Focus is invisible for the Accessibility users. This occurs when the focus is on the radio button element (Tab key is used) . 


Error Messages

Not Applicable


Steps to Reproduce

  1. Apply the Accessibility framework
  2. Configure a radio button element 


Root Cause



An out-of-the-box feature is not present to provide a background focus to the radio button for the Accessibility users. 

Resolution



Perform the following local-change: 
Add the below code to the UserWorkForm file:

<script>

 setTimeout(function() { 

     if(pega && pega.u && pega.u.d && pega.u.d.isAccessible) {

       var radioFocusStyleNode = document.createElement("style");

       radioFocusStyleNode.innerHTML = 'input[type=radio]:focus + label{background-color: yellow;outline: auto; padding: 6px; bottom: 7px;}';
       
       

       document.head.appendChild(radioFocusStyleNode);
       

     }

   }, 500);

</script>


 

 


 
Suggest Edit

Published January 6, 2020 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us