Skip to content

Enhanced Accessibility for Cloudinary’s Product Gallery Widget

Cloudinary’s Product Gallery widget, which launched in 2019, has enabled many brands to effectively and efficiently showcase their products in a sleek and captivating manner, saving countless hours of development time and accelerating release cycles. By adding Cloudinary’s Product Gallery widget with its customizable UI to their product page, retailers reap numerous benefits, often turning visitors into customers in short order.

Newly on deck are several enhancements to the widget’s accessibility, capped with a more wholesome, convenience-filled experience. Below is a summary.

A core mission of Cloudinary is to deliver a fast, riveting web experience regardless of device, browser, or network speed. Gratifyingly, the barrier to accessing the internet on various devices is being lowered continually. Those devices have also become more robust with helpful features, which opens more access to the disabled.

By improving the accessibility of its Product Gallery widget, Cloudinary fulfills the needs of disabled visitors to e-commerce sites, affording those individuals an enjoyable shopping experience and helping grow retail revenue. Two examples:

  • A significant number of physically handicapped people cannot use a mouse device, relying exclusively on their keyboard instead.

  • The visually impaired must turn to assistive technology in order to access content. For those individuals, Cloudinary’s Product Gallery now enables keyboard accessibility, offers screen readers that support alt text, and features multiple zoom-in levels.

The tutorial video below walks you through the accessibility-related enhancements for Cloudinary’s Product Gallery widget, followed by a summary of each of them.

The accessibility layer, which is part of the basic configuration, supports these standard keyboard navigations:

  • Tab to navigate forward
  • Shift+Tab to navigate back
  • Enter to view or zoom in to an asset
  • Esc to stop zooming in
  • Spacebar to toggle between playing and pausing a video

The enhancements are tailored for users who must rely on the keyboard for navigation due to an inability to use a mouse device; and for the visually impaired, who decipher text by listening to a screen reader. We recommend the following configurations:

  • Classic view or multiple columns in an expanded view, the latter delivering a more prominent focus
  • With or without thumbnails
  • Zooming as a pop-up
  • Images and videos
  • Play and Pause as the only controls for video

Subsequent to the widget’s June 2021 release, all Cloudinary product galleries feature alt text. By default, the widget adds a string to the alt text of each asset in the form of “Gallery asset n of m.” Also, generation of alt text in the widget is now automatic, greatly enhancing accessibility for screen-reader users.

By way of background, alt text is an important feature for the following reasons:

  • In case an image fails to load, the related alt text is displayed.
  • Screen readers play the audio of alt text—a big help to the visually impaired.
  • Alt text raises your site’s search engine optimization (SEO) ranking by sending contextual image descriptions to search-engine crawlers. Indexing is easier for images with alt text. This feature goes hand in hand with the [keyboard accessibility](https://cloudinary.com/documentation/product_gallery#accessible_navigation enabled by the Product Gallery widget. That’s a tremendous boon for people with low vision and, concurrently, difficulties in seeing images and other digital elements.

We highly recommend that you populate alt text with contextual metadata. Alternatively, adopt a structured metadata key for your gallery assets. Make the wording clear and descriptive, especially since this text is also picked up by search engines, hence a key factor for SEO.

Note:

Abide by this important tip on the length of alt text.

In addition, heed the following to ensure a captivating display:

  • Asset style (painting, photo, illustration, video, 360 view)
  • Placement of objects
  • Placement of text
  • Colors
  • Product material, textures, and styles
  • Food ingredients, flavors, and spices
  • Animals
  • Emotions, such as smiles
  • Surroundings

For more details, see the documentation.

The Product Gallery widget’s new multilevel capability for zooming offers, on demand, a detailed view of product images, displaying captivating specifics like fabric, stitches, fine lines, buckles, and gemstones.

With multilevel zooming, individuals with hampered vision, such as a restricted or distorted field of view, tunnel, or peripheral, can see your product gallery’s images clearly and interact with your site as desired.

The zooming pop-up offers several configurable levels, which are controlled through a click on the + or – buttons on desktop screens or a pinch on mobile devices. The simple configuration process includes options for the zooming factor and the number of zooming steps, as shown in this demo:

Note:

For the best multiple-zooming experience, display high-resolution images capable of retaining the quality standard over a deep zooming.

Below are two demos on how to customize a product gallery with Cloudinary along with two live examples of well-designed and eye-catching galleries:

  • Customizable Product Gallery, a demo
  • Customizable Product Gallery with keyboard accessibility

For the Cloudinary process through which to make your site fast and accessible, see this post.

For details on color accessibility, see this article.

We welcome suggestions on accessibility vis-a-vis the Cloudinary platform. Also, feel free to send us ideas on new features for our public roadmap.

Back to top

Featured Post