
| Current Path : /var/www/html/ift/web/core/themes/claro/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/themes/claro/js/dropbutton.es6.js |
/**
* @file
* Theme overrides for Claro.
*/
(Drupal => {
/**
* Overrides the dropbutton toggle markup.
*
* We have to keep the 'dropbutton-toggle' CSS class because the dropbutton JS
* operates with that one.
*
* @param {object} options
* Options object.
* @param {string} [options.title]
* The button text.
*
* @return {string}
* A string representing a DOM fragment.
*/
Drupal.theme.dropbuttonToggle = options =>
`<li class="dropbutton-toggle"><button type="button" class="dropbutton__toggle"><span class="visually-hidden">${options.title}</span></button></li>`;
})(Drupal);