Download for Google Chrome (opens in a new tab)
Download for Edge (opens in a new tab)
Download for Firefox (opens in a new tab)Newsletter
New laws and deadlines, court rulings, enforcement and WCAG changes. A short summary once a week, and an e-mail straight away when something important happens. Unsubscribe at any time.

An npm package with a Svelte component: the accessibility widget for your whole application and a store to control it.
npm registry
You wrap the application in the AccessibilityProvider component with the site token; it loads the widget once for all views. The accessibilityStore store gives any component the widget's instance and whether it is ready.
Visitors open the widget with its button and adjust the page to their needs:
The code carries only the site token. The widget's look, the accessibility options and the accessibility statement are set in your DockAccess account, so changing them never means editing the code again.
The widget collects no personal data of visitors. Only the IP address and the user agent are recorded to count views.
Copy the site token from My sites in your DockAccess account and paste it below. No site yet? Add one.
The code in the next steps fills in with this token.
Install the package with npm or Yarn:
npm:
npm install @dockcodes/accessibility-widget-svelte
Yarn:
yarn add @dockcodes/accessibility-widget-svelte
Import the component:
import { AccessibilityProvider } from "@dockcodes/accessibility-widget-svelte";
Wrap the application with <AccessibilityProvider>. It contains the token you pasted above.
<AccessibilityProvider token="SITE_TOKEN"> {children} </AccessibilityProvider>
Optionally, control the widget from your components with the accessibilityStore store:
<script> import { accessibilityStore } from "@dockcodes/accessibility-widget-svelte"; $: ready = $accessibilityStore.ready; $: accessibility = $accessibilityStore.accessibility; </script> {#if ready && accessibility} <button on:click={() => accessibility.setContrast(true)}>Contrast</button> {/if}
Open your website and check that the accessibility widget button is visible.
The widget appears on every page of the application inside the provider. Visitors open it with its button or with Ctrl + U, and the widget remembers their choices on the next visit.
In your DockAccess account, pick the site in My sites and open its Accessibility widget tab. There you set the colours, the position and size of the button (also separately for narrow screens), the maximum zoom, the features and profiles on offer, your own selectors and the accessibility statement. The preview shows a change before you save it, and the package does not have to be installed again.
The widget works on the domains of the site in your account, so add every address the website runs under. The free plan covers 5,000 widget views a month for all the sites of the account. Once they are used up, the widget does not show until the 1st of the next month or until a plan with a higher limit is active.
In a component, $accessibilityStore.accessibility is the instance once $accessibilityStore.ready is true. Through it you change the settings, for example setContrast(true), setFontSize(4), setLanguage("en") or resetAll(), and listen to the widget, for example with onMenuOpen(). The widget also sends events when an option, the profile or the language changes and when its menu opens or closes; the Knowledge base articles tab lists them.
Module for Magento 2.4.4+, Adobe Commerce and Mage-OS
Let your visitors adapt the website to their needs: contrast, text size, reading aloud and ready-made profiles.
See the installationFree up to 5,000 views a month.