Loading bootstrap5.info.yml +3 −1 Original line number Diff line number Diff line name: Bootstrap5 type: theme description: 'Theme with Bootstrap 5 css library' core_version_requirement: ^8.9 || ^9 core_version_requirement: ^9.2 || ^10 base theme: classy libraries: Loading @@ -10,6 +10,8 @@ libraries: ckeditor_stylesheets: - css/style.css ckeditor5-stylesheets: - css/style.css stylesheets-remove: - '@classy/css/components/tabs.css' Loading bootstrap5.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ drupal.nav-tabs: - core/matchmedia - core/jquery - core/drupal - core/jquery.once - core/once - core/drupal.debounce - core/collapse Loading js/nav-tabs.es6.js +5 −6 Original line number Diff line number Diff line Loading @@ -2,9 +2,10 @@ * @file * Responsive navigation tabs (local tasks) * * Element requires to have class .is-collapsible and attribute [data-drupal-nav-tabs] * Element requires to have class .is-collapsible and attribute * [data-drupal-nav-tabs] */ (($, Drupal) => { (($, Drupal, once) => { function init(i, tab) { const $tab = $(tab); const $target = $tab.find('[data-drupal-nav-tabs-target]'); Loading @@ -25,12 +26,10 @@ */ Drupal.behaviors.navTabs = { attach(context) { $(context) .find('[data-drupal-nav-tabs].is-collapsible') .once('nav-tabs') once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context) .each((i, value) => { $(value).each(init); }); }, }; })(jQuery, Drupal); })(jQuery, Drupal, once); js/nav-tabs.js +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * @preserve **/ (function ($, Drupal) { (function ($, Drupal, once) { function init(i, tab) { var $tab = $(tab); var $target = $tab.find('[data-drupal-nav-tabs-target]'); Loading @@ -23,9 +23,9 @@ Drupal.behaviors.navTabs = { attach: function attach(context) { $(context).find('[data-drupal-nav-tabs].is-collapsible').once('nav-tabs').each(function (i, value) { once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context).each(function (i, value) { $(value).each(init); }); } }; })(jQuery, Drupal); No newline at end of file })(jQuery, Drupal, once); templates/form/select.html.twig +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ * @see template_preprocess_select() */ #} {% spaceless %} {% apply spaceless %} <select{{ attributes.addClass('form-control') }}> {% for option in options %} {% if option.type == 'optgroup' %} Loading @@ -24,4 +24,4 @@ {% endif %} {% endfor %} </select> {% endspaceless %} {% endapply %} Loading
bootstrap5.info.yml +3 −1 Original line number Diff line number Diff line name: Bootstrap5 type: theme description: 'Theme with Bootstrap 5 css library' core_version_requirement: ^8.9 || ^9 core_version_requirement: ^9.2 || ^10 base theme: classy libraries: Loading @@ -10,6 +10,8 @@ libraries: ckeditor_stylesheets: - css/style.css ckeditor5-stylesheets: - css/style.css stylesheets-remove: - '@classy/css/components/tabs.css' Loading
bootstrap5.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ drupal.nav-tabs: - core/matchmedia - core/jquery - core/drupal - core/jquery.once - core/once - core/drupal.debounce - core/collapse Loading
js/nav-tabs.es6.js +5 −6 Original line number Diff line number Diff line Loading @@ -2,9 +2,10 @@ * @file * Responsive navigation tabs (local tasks) * * Element requires to have class .is-collapsible and attribute [data-drupal-nav-tabs] * Element requires to have class .is-collapsible and attribute * [data-drupal-nav-tabs] */ (($, Drupal) => { (($, Drupal, once) => { function init(i, tab) { const $tab = $(tab); const $target = $tab.find('[data-drupal-nav-tabs-target]'); Loading @@ -25,12 +26,10 @@ */ Drupal.behaviors.navTabs = { attach(context) { $(context) .find('[data-drupal-nav-tabs].is-collapsible') .once('nav-tabs') once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context) .each((i, value) => { $(value).each(init); }); }, }; })(jQuery, Drupal); })(jQuery, Drupal, once);
js/nav-tabs.js +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * @preserve **/ (function ($, Drupal) { (function ($, Drupal, once) { function init(i, tab) { var $tab = $(tab); var $target = $tab.find('[data-drupal-nav-tabs-target]'); Loading @@ -23,9 +23,9 @@ Drupal.behaviors.navTabs = { attach: function attach(context) { $(context).find('[data-drupal-nav-tabs].is-collapsible').once('nav-tabs').each(function (i, value) { once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context).each(function (i, value) { $(value).each(init); }); } }; })(jQuery, Drupal); No newline at end of file })(jQuery, Drupal, once);
templates/form/select.html.twig +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ * @see template_preprocess_select() */ #} {% spaceless %} {% apply spaceless %} <select{{ attributes.addClass('form-control') }}> {% for option in options %} {% if option.type == 'optgroup' %} Loading @@ -24,4 +24,4 @@ {% endif %} {% endfor %} </select> {% endspaceless %} {% endapply %}