Hiding technical iframe
Associated themes :- Component
Introduction
A technical
iframe
isiframe
with only a technical role and invisible to users.For example, aniframe
that executes a script to collect the user actions on the page.So, the accessibility repositories ask us to indicate in the
title
attribute the content that will be present in theiframe
, information that will be accessible to the assistive tools (a screen reader will vocalize thetitle
attribute of aniframe
).Hide the
iframe
to all usersThe solution for hiding the
iframe
, including help tools users, is to add aaria-hidden='true'
attribute on theiframe
. The scripts contained in theiframe
will always be executed.In addition, you can add a
tabindex
attribute to prevent the focus from moving in theiframe
. So users who navigate using the keyboard will not get lost inside it.<iframe title="technical content" aria-hidden="true" tabindex="-1" src="http://www.orange.com/"></iframe>