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

[ionic.4] ion-item more slots #15627

Closed
RHinderiks opened this issue Sep 17, 2018 · 2 comments
Closed

[ionic.4] ion-item more slots #15627

RHinderiks opened this issue Sep 17, 2018 · 2 comments
Labels
needs: reply the issue needs a response from the user type: feature request a new feature, enhancement, or improvement

Comments

@RHinderiks
Copy link

Feature Request

Describe the Feature Request
We would like more slots, For example for keeping things at the top-left of a list item. This is quite normal behaviour when for example using avatars (github being one of those examples

Describe Preferred Solution
More slots

Describe Alternatives
Change current behaviour so elements aren't centered vertically.

@ionitron-bot ionitron-bot bot added the triage label Sep 17, 2018
@ionitron-bot ionitron-bot bot removed the triage label Sep 17, 2018
@brandyscarney brandyscarney added type: feature request a new feature, enhancement, or improvement and removed enhancement labels Nov 29, 2018
@brandyscarney
Copy link
Member

brandyscarney commented Apr 2, 2019

Thanks for the issue! This can be done using CSS, like the following:

<ion-item>
  <ion-avatar slot="start"></ion-avatar>
  <ion-label>
    <h1>Heading</h1>
    <h2>Heading</h2>
    <h3>Heading</h3>
  </ion-label>
</ion-item>
ion-avatar {  
  align-self: flex-start;
}

Here's a Codepen example: https://codepen.io/brandyscarney/pen/qwdJRJ?editors=1100

We also have CSS Flex Utilities for quickly aligning flex items.

Is this what you're looking for?

@brandyscarney brandyscarney added the needs: reply the issue needs a response from the user label Apr 2, 2019
@ionitron-bot
Copy link

ionitron-bot bot commented May 2, 2019

Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed May 2, 2019
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: reply the issue needs a response from the user type: feature request a new feature, enhancement, or improvement
Projects
None yet
Development

No branches or pull requests

2 participants