Skip to content

Commit

Permalink
js and libraries update
Browse files Browse the repository at this point in the history
Rename js file
Move js from block level to global (this handles the accordion ckeditor as well so it needs to be attached to every page)
Remove redundant expandable from libraries
  • Loading branch information
jnicholCU committed Nov 14, 2024
1 parent 21ca15b commit da80574
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions boulder_base.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ucb-global:
js:
js/bootstrap/bootstrap.min.js: {}
js/ucb-rave-alert.js: {}
js/ucb-expandable-content.js: {}
dependencies:
- core/drupal

Expand Down Expand Up @@ -127,13 +128,6 @@ ucb-image-gallery:
css/block/image-gallery.css: {}
js/glightbox/glightbox.min.css: {}

ucb-expandable-content:
version: 1.x
js:
js/expandable-content.js: {}
css:
theme:

ucb-content-grid:
version: 1.x
css:
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion templates/block/block--expandable-content.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

{% extends '@boulder_base/block/styled-block.html.twig' %}
{% block content %}
{{ attach_library('boulder_base/ucb-expandable-content') }}
{% if layoutSelection == 1 %}
<div class="horizontal-tab-accordion">
<ul class="nav nav-tabs justify-content-center" id="ucb-horizontal-tabs{{ id }}" role="tablist">
Expand Down

0 comments on commit da80574

Please sign in to comment.