-
AuthorPosts
-
July 12, 2019 at 10:39 am #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
ThiloJuly 15, 2019 at 3:37 am #1118656Hey 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,
IsmaelNovember 7, 2019 at 4:26 pm #1154668Hey 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.togglerAlso;
[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.togglerPlease help.
- This reply was modified 5 years ago by dronur.
November 8, 2019 at 6:19 am #1154852Hi,
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,
IsmaelNovember 8, 2019 at 9:27 am #1154879Thank 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.togglerBest Regards
OnurNovember 11, 2019 at 1:37 am #1155439Hi,
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,
IsmaelNovember 11, 2019 at 9:52 am #1155515Hej Ismael;
Thank you for your support! You are amazing!
RegardsNovember 11, 2019 at 1:55 pm #1155597Hi dronur,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.