Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

feature/componentAccordion #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MoribundMedium
Copy link

Resolves #11

Description of Changes

Creates a simple accordion widget which accepts strings for tab headers and tab contents.

How Can I Test This?

Paste this into index.twig and compare with mock-up:

<div class="flex my-2" style="justify-content: center;">
    {% set vars = { accordionContents: [
        {
        'header': 'Accordion tab 1',
        'contents': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
        },
        {
        'header': 'Accordion tab 2',
        'contents': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
        },
        {
        'header': 'Accordion tab 3',
        'contents': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat..',
        },
    ]} %}
    {% include "../src/molecules/accordion/accordion.twig" with vars %}
</div>

@MoribundMedium MoribundMedium requested a review from lapinell June 4, 2020 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature/componentAccordian
1 participant