Among the available templates, one is dedicated to accessibility. It ensures compatibility with RGAA and WCAG 2.0 level AA standards.
Web Content Accessibility Guidelines (WCAG) is developed through the W3C process in cooperation with individuals and organizations around the world, with a goal of providing a single shared standard for web content accessibility that meets the needs of individuals, organizations, and governments internationally.
More information here : https://www.w3.org/WAI/standards-guidelines/wcag/
When websites and web tools are properly designed and coded, people with disabilities can use them. However, currently many sites and tools are developed with accessibility barriers that make them difficult or impossible for some people to use.
Making the web accessible benefits individuals, businesses, and society. International web standards define what is needed for accessibility.
Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them. More specifically, people can:
perceive, understand, navigate, and interact with the Web
contribute to the Web
With this template the main key point is to offer a privacy fully functional for people with disabilities.
The Accessibility template provides an automatic translation of different labels. This translation is based on navigator language. Currently, it supports : Italian, English, German, French and Russian.
Banners
You can either add new translation or override aria labels by using the function tC.privacy.addTranslation()
in the custom JS.
Labels available :
iframeTitle
: Title attribute of the iframe
privacyLabel
: Aria Label of the footer
acceptAria
: Aria Label of the accept button
refuseAria
: Aria Label of the refuse button
showPcAria
: Aria Label of the “Show Privacy Center“ Button
Exemple :
Privacy Center
⚠️ To translate the privacy you must use another function: pc.addTranslation()
Available keys and their values :
Some of the translation accept a label as {label}. The label here is always the label of the category.
The last keys with SrPrefix
/SrSuffix
have empty translation by default. These keys are used for “sr-only” text which are prefixing and suffixing the category name. These text are only readable by a screen reader.
cookieSr
are used when the category isn’t locked
cookieAlwaysOnSr
replaces cookieSr
if the category is blocked to on
Example:
By default, texts provided to screen readers is translated depending on the navigator language. In some case you may want to display a privacy in english for example even if the navigator language is another one. ie : with an ISO language code in the url
You can force the privacy to take a language by using the function setLocale in the Privacy Center > Custom JS field > JS Block Before :
Value can be : fr, it, de, ru or en
Note : this function must be placed after the translation declaration.
The focus trap is an accessibility option designed so that keyboard user have their navigation locked to the banner. Pressing the TAB key would cycle between the different navigation elements of the banner without going on your website. This is an accessibility recommendation when using modal on a webpage.
You can deactivate the focus trap by adding the following JavaScript snippet to the custom JS of the accessibility template banner:
A list of available banner templates in TrustCommander
TrustCommander offers multiple banner templates for different kind of privacy workflows.
Template
Description
Header (with Privacy Center)
Floating overlay banner (is layered on top of the website), positioned at the top of the page. This banner includes a text message and customisable buttons. You can add a link to another page (e.g. privacy policy).
This template exists with and without an optional privacy center.
Popin (with Privacy Center)
A floating modal dialogue (pop-up), positioned in the centre of the page. This banner includes a text message and customisable buttons. It supports links to another page (e.g. privacy policy).
This template exists with and without an optional privacy center.
Footer (with Privacy Center)
Floating overlay banner, positioned at the bottom of the page. This banner includes a text message and customisable buttons. It supports links to another page (e.g. privacy policy).
This template exists with and without an optional privacy center.
A variation of this template exists with extended accessibility support.
Footer without button
Floating overlay banner, positioned at the bottom of the page. This banner includes a text message and cross icon to close the banner. It supports links to another page (e.g. privacy policy).
Popin with categories
This template directly opens the privacy center that allows visitors to select TrustCommander privacy categories and sub-categories they want to activate/deactivate.
IAB TCF 1.1 Popin
A floating modal dialogue (pop-up), positioned in the centre of the page. This template offers consent controls following the IAB TCF 1.1 standard.
IAB TCF 1.1 Footer
Floating overlay banner, positioned at the bottom of the page. This template offers consent controls following the IAB TCF 1.1 standard.
IAB TCF 2.0 Popin
Template available if IAB TCF 2.0 option is activated in the TRUST > Options
section.
A floating modal dialogue (pop-up), positioned in the centre of the page. This template offers consent controls following the IAB TCF 2.0 standard.
IAB TCF 2.0 Footer
Template available if IAB TCF 2.0 option is activated in the TRUST > Options
section.
Floating overlay banner, positioned at the bottom of the page. This template offers consent controls following the IABTCF 2.0 standard.