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

aria-selected="true" for collapsed Dynamic LayoutGroup Accordion

SA-101394

Summary



Pega out-of-the-box dynamic layout group Accordion does not initialize correctly on the browser Dev Inspector. 

In a section,  four accordions are present and only one accordion is open. In the Dev Inspector, the expected result is as below: <div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 1 - RS10 - B.V" tabindex="0" aria-selected="true" style="transform: translateX(0px);" xpath="1"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 2 - RS10 - B.V" tabindex="-1" aria-selected="false" style="transform: translateX(0px);" xpath="2"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 3 - RS10 - B.V" tabindex="-1" aria-selected="false" style="transform: translateX(0px);" xpath="3"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 4 - RS10 - B.V" tabindex="-1" aria-selected="false" style="transform: translateX(0px);" xpath="4">

<h3 class="layout-group-item-title" aria-level="3" id="headerlabel4309"></h3>

</div>

However,  the actual result is, 

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 1 - RS10 - B.V" tabindex="0" aria-selected="true" style="transform: translateX(0px);" xpath="1"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 2 - RS10 - B.V" tabindex="0" aria-selected="true" style="transform: translateX(0px);" xpath="2"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 3 - RS10 - B.V" tabindex="0" aria-selected="true" style="transform: translateX(0px);" xpath="3"></div>

<div data-template="" class="header" data-layout-id="202001090447100436" role="tab" title="" bsimplelayout="true" aria-label="TC203 - Obligor 4 - RS10 - B.V" tabindex="0" aria-selected="true" style="transform: translateX(0px);" xpath="4">

<h3 class="layout-group-item-title" aria-level="3" id="headerlabel4309"></h3>

</div>



Despite selecting only one 'accordion aria', the other accordtions are also listed as 'selected=true'.
The expected value must be aria-selected="true" for the first row and aria-selected="false" for the other rows.



Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section.
  2. Add a dynamic layout group Accordion.
  3. Add a section in the dynamic layout group.
  4. Execute the case to display the section. Inspect the browser using F12 or right click Inspect. Look for aria-selected element.


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



This feature is implemented in the following:
  • Pega Platform 8.1.8
  • Pega Platform 8.3.2

Published April 16, 2020 - Updated December 2, 2021

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