Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #245 from fourkitchens/65-attach-library
Browse files Browse the repository at this point in the history
65: Attach Library used in Pattern Lab
  • Loading branch information
Evan Willhite authored Aug 20, 2018
2 parents 783fa64 + d7ab35b commit 67d6dee
Show file tree
Hide file tree
Showing 12 changed files with 445 additions and 159 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pattern-lab
# Twig helper functions
**/add_attributes.function.php
**/bem.function.php
**/pl_attach-library.function.php

# NPM
node_modules
Expand Down
2 changes: 0 additions & 2 deletions components/_meta/_01-foot.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<!-- <script src="../../js/ready.min.js"></script> -->
<!-- <script src="../../js/drupal.js"></script> -->

<script src="../../../../dist/scripts-styleguide.js"></script>

<!-- If using Drupal.behaviors, uncomment for them to work in Pattern Lab -->
<!-- <script>Drupal.attachBehaviors();</script> -->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ attach_library('emulsify/accordion') }}

{% include "@atoms/03-lists/_list-item-definition.twig" with {
dl_term_base_class: 'accordion-term',
dl_def_base_class: 'accordion-def',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ attach_library('emulsify/main-menu') }}

<a href="#" id="toggle-expand" class="toggle-expand">
<span class="toggle-expand__open">
{% include "@atoms/04-images/icons/_icon.twig" with {
Expand Down
1 change: 1 addition & 0 deletions components/_patterns/02-molecules/menus/tabs/tabs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

{# PL Specific (javascript version) #}
{% if not primary %}
{{ attach_library('emulsify/tabs') }}
<div id="tabs" class="tabs no-js">
<ul class="tabs__nav">
{% for key, listItem in listItems.three %}
Expand Down
2 changes: 2 additions & 0 deletions components/_patterns/03-organisms/accordion/accordion.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ attach_library('emulsify/accordion') }}

{% include "@atoms/03-lists/02-dl.twig" with {
dl_modifiers: accordion_modifiers,
dl_blockname: accordion_blockname,
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"drupal/components": "^1.0",
"drupal-pattern-lab/add-attributes-twig-extension": "^1.0",
"drupal-pattern-lab/bem-twig-extension": "^1.0",
"drupal-pattern-lab/attach-library-twig-extension": "^1.0",
"drupal-pattern-lab/unified-twig-extensions": "^0.1"
},
"require-dev": {},
Expand Down
Loading

0 comments on commit 67d6dee

Please sign in to comment.