Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1118017

    Hi Kriesi Team,

    Lighthouse in Chrome DevTools reports the following error:
    Inhalts Element “Reiter”

    ARIA –
    [role]s are not contained by their required parent element –
    Some ARIA child roles must be contained by specific parent roles to properly perform their intended accessibility functions.
    [aria-*] attributes do not have valid values
    Assistive technologies, like screen readers, can’t interpret ARIA attributes with invalid values.

    How can we fix this issue?

    Thanks for your support.

    BR
    Thilo

    #1118656

    Hey ThiloKiefer,

    Thank you for using Enfold.

    Where does the error point to? Which element? The actual markup with the missing parent element should be listed in the report.

    Best regards,
    Ismael

    #1154668

    Hey Ismael;
    I am also getting this error. points to accordion.

    [role]s are not contained by their required parent element
    Failing Elements
    p.toggler
    p.toggler
    p.toggler
    p.toggler
    p.toggler

    Also;
    [aria-*] attributes do not have valid values
    Assistive technologies, like screen readers, can’t interpret ARIA attributes with invalid values. Learn more.
    Failing Elements
    p.toggler
    p.toggler
    p.toggler
    p.toggler
    p.toggler

    Please help.

    • This reply was modified 4 years, 4 months ago by dronur.
    #1154852

    Hi,

    Thank you for the info.

    According to the documentation, the error occurs because the togglers’ aria-controls attribute contains a value or id that doesn’t exists in the page. It’s supposed to correspond to a toggler content wrap, but the id value of that element doesn’t match with the value of the aria-controls attributes. Please try to edit the config-templatebuilder > aviashortcodes > toggles > toggles.php file, look for this code around line 623:

    $output .= '<div id="'.$toggle_atts['custom_id'].'-container" class="toggle_wrap '.$contentClass.'"  '.$toggle_init_open_style.'>';
    

    We have to remove “-container” in the id attribute value.

    $output .= '<div id="'.$toggle_atts['custom_id'].'" class="toggle_wrap '.$contentClass.'"  '.$toggle_init_open_style.'>';
    

    Best regards,
    Ismael

    #1154879

    Thank you Ismael, it worked for [aria] warning. But still getting the following [role] warning:

    [role]s are not contained by their required parent element
    Some ARIA child roles must be contained by specific parent roles to properly perform their intended accessibility functions. Learn more.
    Failing Elements
    p.toggler
    p.toggler
    p.toggler
    p.toggler
    p.toggler

    Best Regards
    Onur

    #1155439

    Hi,

    Glad to know it’s working. For the second warning, try to edit line 620 in the same file.

    $output .= '<div class="single_toggle" '.$this->create_tag_string($toggle_atts['tags'], $toggle_atts).'  >';
    

    Add the “tablist” role in the single_toggle container, or replace the line with the following code.

    $output .= '<div role="tablist" class="single_toggle" '.$this->create_tag_string($toggle_atts['tags'], $toggle_atts).'  >';
    

    Best regards,
    Ismael

    #1155515

    Hej Ismael;
    Thank you for your support! You are amazing!
    Regards

    #1155597

    Hi dronur,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.