Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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?

    #1305870

    Hey,

    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,
    Yigit

    #1305943

    Hi 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:

    $params[‘attach’] .= “‘;

    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.

    #1306006

    Hi,

    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,
    Yigit

    #1306632

    I started fresh using your above script and it now works. Thank you.

    #1306713

    Hi,

    You are welcome! Let us know if you have any other questions and enjoy the rest of your day! :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘change [aria-hidden="true"] to "false"’ is closed to new replies.