Support Article
Work object tabs do not have correct title
SA-59666
Summary
Close icon on work object tabs does not have the correct title when used with JAWS.
Error Messages
Not Applicable
Steps to Reproduce
- Deploy PegaWAI.
- On the Case Manager portal, open a couple of work objects.
- Enable the JAWS screen reader.
- Press 'Insert+CTRL+B' keys. JAWS popup window displays with all the buttons. Multiple 'Close this tab Button' options are displayed.
For example, when the work object is APL-23, its title should display as 'APL-23 Close this tab'.
Root Cause
This issue was determined to be a product enhancement request.
Resolution
An enhancement request, FDBK-26938, is created for consideration by Pega Product Management.
Alternatively, as a local-change, add the below script to the UserWorkForm. <script>
pega.u.d.attachOnload(setCustomTabAriaLabels,true);
function setCustomTabAriaLabels(){
if(window!=top){
var activeTab = top.$(".dc-header ul[role='tablist'] .selected");
if(activeTab.length == 0){
return false;
}
activeTab = activeTab[0];
var closeIcon = activeTab.getElementsByClassName("iconCloseSmall")[0];
var ariaLab = closeIcon.getAttribute("aria-label");
if(ariaLab.indexOf(activeTab.title)==-1){
closeIcon.setAttribute("aria-label", activeTab.title+":"+ ariaLab);
var title = closeIcon.getAttribute("title");
closeIcon.setAttribute("title", activeTab.title +":"+ title);
}
}
}
</script>
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.