Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set vertical margin between the items in the iron-list. #567

Open
Krishuthapa opened this issue Mar 10, 2020 · 0 comments
Open

Cannot set vertical margin between the items in the iron-list. #567

Krishuthapa opened this issue Mar 10, 2020 · 0 comments

Comments

@Krishuthapa
Copy link

Description

Cannot set vertical margin between the items in the iron-list.

I have used iron-list in LitElement which contains the array of a custom component.

 <iron-list .items="${this.filteredModuleList}" as="item">
        <template>
          <campaign-card
            campaignId$="{{item.id}}"
            name$="{{item.name}}"
            scientist$="{{item.scientist.name}}"
            createdDate$="{{item.created_date}}"
            campaignStatus$="{{item.status}}"
            synthesisType$="{{item.synthesis_type.name}}"
            targetId$="{{item.target.id}}"
            cardTopic="${this.cardTopic}"
          >
          </campaign-card>
        </template>
      </iron-list>

I want to set the vertical margin between these elements.But it does not work. How can I set the margin-top and margin-bottom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant