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

Go to Main Content link does not set focus correctly

SA-28643

Summary



After setting a dynamic layout to be the Main content with the ARIA landmark role Main, the Go to Main Content link does not change the focus to the correct layout.


Error Messages



Not Applicable


Steps to Reproduce

  1. Deploy PegaWAI.
  2. Specify a dynamic layout as Main landmark under accessibility role.
  3. At run time, use the Go To Main Content link.


Root Cause



This issue was determined to be a product enhancement request, as the Skip to Content feature in its current implementation has several known limitations.
First, at run time, the Main Content region is the First (in DOM order) one of:
  • The Center Panel of Screen Layouts and Panel Sets
  • A Dynamic Layout explicitly marked as Main Content
  • The Dynamic Container when present

In this case, the user-defined Dynamic Layout Main content designation is overridden by the Screen Layout Center Panel.

The skip to content function cannot skip to a region that is in a separate iFrame from the pySkipToTarget menu.


Resolution

Significant enhancement of this feature has been delivered through:

  • HFix-29374 in Pega 7.2
  • HFix-29375 in Pega 7.2.1
  • HFix-36295 in Pega 7.2.2


With this enhancement, the Skip to Content function will now prioritize any Dynamic Layout with the Landmark value set to Main.

After installing the hotfix, modify the available when-rule, pyFocusInsideIframe to always return true, to enable the new skipToContent functionality.

Published September 5, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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