Skip to main content

Drupal Support for Accessibility for the visually impaired

There are many Accessibility support javascript plugins, start with the free module and then, on the same way you can integrate other javascript support.

Step 1: Build your custom module that support accessibility

create a custom module, this module should include the following folder structure and files:

  • my_module
    • assets
      • js
    • my_module.info.yml
    • my_module.libraries.yml
    • my_module.module

 

The folder 'js' should contain the accessibility javascript support, I used NagishLi: Accessible Internet for Free

Download the plugin and extract it, the output will be folder name: nagishli-files and nagishli_beta.js
puth both in your module folder: js

your module folder now will look like the following:

  • my_module
    • assets
      • js
        • nagishli-files
        • nagishli_beta.js
    • my_module.info.yml
    • my_module.libraries.yml
    • my_module.module

 

Step 2: Set your my_module.info.yml

name: my_module
type: module

package: System
core_version_requirement: ^10 

 

Step 3: Set your my_module.libraries.yml

Add the following code into the module libraries configuration

nagishli:
    js:
        assets/js/nagishli_beta.js: {}

 

Step 4: Set your module file, which will upload the script with module

    function rw_page_attachments(array &$attachments) {
        $attachments['#attached']['library'][] = 'rw/nagishli';
    }

 

you are all set.

don't forget to: clean the site cache and clear browser cache

 

Download NagishLi

The current version of NagishLi is 2.3 was released on 05.09.2019 and has been downloaded 10,973 times.
To learn how to install and configure NagishLi, check the installation page. To see what's changed in this version, check the changelog.

  • I know that an accessibility plugin offers more accessibility to users, but not necessarily make my website fully accessible
  • Localize* won't be held responsible for any damage that will be caused by using this plugin
  • Redistribution is allowed and recommended, as long as the plugin is not modified in any way
  • All of the credits and information about the developer must stay intact (depending on your license)
  • Localize* is allowed to change the license and pricing any time
  • In case of ANY modification of the NagishLi plugin without explicit permission, Localize* will be allowed to take legal actions against those responsible and/or website owners