-
AuthorPosts
-
June 15, 2021 at 7:47 am #1305727
Hi. I am applying ADA (sec. 508) recommendations to my website. One thing that is flagged is the “[aria-hidden=”true”] elements contain focusable descendants” (within Lighthouse/Accessibility). I would like to change “false” to “true”. (This particular item is within the “a.scroll-down-link” of Section.)
Is it okay to do this?
If so, what are the steps, please?June 15, 2021 at 5:34 pm #1305870Hey,
Thanks for contacting us!
Please copy /enfold/config-templatebuilder/avia-shortcodes/section.php to your child theme – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb and then open the file on your child theme and find
$params['attach'] .= "<a href='#next-section' title='' class='scroll-down-link {$arrow_class}' {$arrow_style} " . av_icon_string( 'scrolldown' ) . '></a>';
and change it to
$params['attach'] .= "<a aria-hidden='false' href='#next-section' title='' class='scroll-down-link {$arrow_class}' {$arrow_style} " . av_icon_string( 'scrolldown' ) . '></a>';
Best regards,
YigitJune 16, 2021 at 8:37 am #1305943Hi Yigit,
Thanks for the quick reply. I tried what you recommended but there was not change.
I copied the file “section.php” along with it’s parent folders into my child theme. I changed the line of code to the one you provided:But, no change in results.
If the code you provided me is correct, then no worries. I can just remove the “down arrow” option from my design.June 16, 2021 at 2:02 pm #1306006Hi,
I just tested it on my local installation on a child theme however it worked as expected for me – https://imgur.com/a/ecnsTGY
You might be adjusting the wrong line I am afraid. If you have copied the file to your child theme, could you please create temporary admin logins and post them here privately so we can look into it?
If Editor is missing under Appearance tab, please post FTP logins privately as well :)
Best regards,
YigitJune 21, 2021 at 3:21 am #1306632I started fresh using your above script and it now works. Thank you.
June 21, 2021 at 12:30 pm #1306713 -
AuthorPosts
- The topic ‘change [aria-hidden="true"] to "false"’ is closed to new replies.