Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Accessibility feature "Skip to Main content" using Layout Container

Avatar

Community Advisor

Is there an out-of-the-box way to set the id to Layout Container to target the main element of the Page? I was referring below article, but it is using Container and not Layout Container. 

https://aemsimplifiedbynikhil.wordpress.com/2021/07/16/skip-to-main-content-accessibility-for-aem-we...

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

No, I don't think so. The recommended approach is to leverage core components. In your particular case, it would be more beneficial to utilize the Container component, which is built on top of the Layout Component, allowing you to take advantage of its upgrades such as the "id" field.



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

No, I don't think so. The recommended approach is to leverage core components. In your particular case, it would be more beneficial to utilize the Container component, which is built on top of the Layout Component, allowing you to take advantage of its upgrades such as the "id" field.



Esteban Bustamante