municipio/wp-plugin-hbg-component-library

A library of components for use in WordPress

Installs: 103

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 4

Type:wordpress-muplugin

pkg:composer/municipio/wp-plugin-hbg-component-library

v25.x-dev 2025-12-21 17:11 UTC

This package is auto-updated.

Last update: 2025-12-21 17:11:35 UTC


README

This plugin is an LTS version of Helsingborg stad’s Compontent Library plugin v4.11.6.

Changes in this Fork

This LTS version includes important security enhancements and accessibility improvements. A comprehensive XSS protection framework has been implemented with TagSanitizer and ID sanitization to remove potentially harmful spaces from user input.

Accessibility has been significantly improved through fixes to aria attributes across multiple components including drawer menus, steppers, and removal of invalid aria-labelledby attributes. Icons are now decorative by default, and misleading alt text has been removed from subfooter logotypes.

New features include datalist support for form fields, the ability to override viewbox width in Brand components, and improved context handling for card tags. Navigation components now properly handle target attributes using null coalescing operators.

Various bugs have been fixed including issues with box blade templates, signature update time handling, and proper language loading when used as an MU plugin. The fork also includes updated package configurations and streamlined development workflows.

Installation

  1. Install the package:
    composer require municipio/wp-plugin-hbg-component-library
  2. Activate the plugin in WordPress.