Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Decor

No security coverage Under active development 2 sites

This module helps make your website more accessible by automatically adding empty alt attributes to images that are purely decorative. This ensures that assistive technologies like screen readers will ignore these images, improving clarity and inclusivity for all users.

Assign empty alt attributes to decorative or redundant images so they can safely be ignored by assistive technologies, making your content clearer and more inclusive for everyone.

Usage

No custom fields or extra markup needed. Just add the js-decor class to any container element in your Twig templates (hero, card or teaser).
Every <img> inside the container will be treated as decorative, with no setup needed. The module will instantly apply empty alt attributes, role="presentation" and remove title attributes to mark images as decorative and removing them from the accessibility tree.

WCAG

This module helps you with WCAG Technique H67: Using null alt text and no title attribute on img elements for images that assistive technology should ignore for meeting Success Criterion 1.1.1: Non-text Content (Level A).

Issues in core

Similar projects

Drupal 10–11

Ask your assistant about Decor

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jun 2025
Latest release
4 months ago
Releases (12 mo)
1 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 10–11 Jun 12, 2026
1.0.2 Stable 10–11 Jun 20, 2025
1.0.1 Stable 10–11 Jun 15, 2025
1.0.0 Stable 10–11 Jun 10, 2025
1.0.x-dev Dev 10–11 Jun 9, 2025