You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ion-item lines="none" in ion-list lines="full" not working as expected #16900
Thanks for your issue! ion-list has higher priority. So by adding lines="full" to list, this will overwrite the item. Just add lines="full" to ion-item:
<ion-list>
<ion-item lines="full" *ngFor="let p of menuPages" [routerDirection]="'forward'" [routerLink]="[pageDirectory[p].path]">
<ion-label>{{ pageDirectory[p].title | translate }}</ion-label>
</ion-item>
<ion-item lines="none">
<ion-label text-center text-small-95>
version <strong>{{ version[0] }}</strong>
</ion-label>
</ion-item>
</ion-list>
I cannot say if this is the correct behaviour, so I add @brandyscarney who can maybe help here :)
I would suggest children will be the highest priority. Parent(ion-list) set the most behavior for the children and specify children(ion-item) can override over parent
I would suggest children will be the highest priority. Parent(ion-list) set the most behavior for the children and specify children(ion-item) can override over parent
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.
Activity
paulstelzer commentedon Jan 2, 2019
Thanks for your issue! ion-list has higher priority. So by adding lines="full" to list, this will overwrite the item. Just add lines="full" to ion-item:
I cannot say if this is the correct behaviour, so I add @brandyscarney who can maybe help here :)
PRINIQ-Kelvin commentedon Jan 2, 2019
I would suggest children will be the highest priority. Parent(ion-list) set the most behavior for the children and specify children(ion-item) can override over parent
brandyscarney commentedon Jan 3, 2019
I agree with this. In fact, it does work like this for the other values of
lines, but it seems that I missed this use case when creating our tests. Here's a codepen of some of the different use cases (with this one now added): https://codepen.io/brandyscarney/pen/xmYgyL?editors=1000#0I'll add this as a bug to fix. Thanks!
fix(item): no lines on item should take precedence over list lines
fix(item): no lines on item should take precedence over list lines (#…
ionitron-bot commentedon Feb 10, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.