Allow the customization of the Tobii lightbox dialog title

Created on 20 February 2025, 3 months ago

Problem/Motivation

For accessibility reasons, it can be necessary to add some custom prefix or suffix of the standard lightbox caption.

Proposed resolution

Use a custom Drupal translated string to allow such customization.

if (lightboxTitle > '') {
  options.dialogTitle = Drupal.t('Lightbox: @caption', {
    '@caption': lightboxTitle,
  });
}
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024