-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-list attribute "lines" not working when attribute "inset" is true #20819
Comments
Thanks for the issue. Can you provide a repo with the code required to reproduce this issue? I am unable to reproduce the issue using the code snippet provided. CodePen of ion-list: https://codepen.io/liamdebeasi/pen/LYVBVZb |
@liamdebeasi i see your codepen is working. --> when you serve the app, switch to iPad view using chrome browser:
|
Thanks for the follow up. I was able to reproduce the issue in my CodePen. It looks like this is related to #17425. As a temporary workaround you can do the following to items in a list with ion-list[inset=true][lines="none"] ion-item {
--border-width: 0 !important;
} |
This also won't work if you use a plain <ion-item class="ion-no-padding" lines="none">
<ion-checkbox slot="start"></ion-checkbox>
<ion-label class="ion-text-wrap>
some label
</ion-label>
</ion-item>
workaround is: ion-item {
&[lines='none'] {
--border-width: 0 !important;
}
} |
workaround for ion-list[inset='true'][lines='inset'] ion-item:not(:last-of-type) {
--border-width: 0 !important;
--inner-border-width: 0 0 0.55px 0;
} |
Thanks for the issue. This has been resolved via #26586, and a fix will be available in an upcoming release of Ionic Framework. |
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. |
Bug Report
Ionic version:
[x] 5.0.5
Current behavior:
When you create an
ion-list
withion-items
and set the attributeinset="true"
onion-list
, the attributelines
wont have any effect onion-item
. Instead you'll always see full lines.Expected behavior:
attribute
lines
onion-list
should work when attributeinset="true"
is set.Steps to reproduce:
copy paste this snippet to any page:
lines="none"
,lines="inset"
--> no effect.lines="full"
.lines="inset"
?Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: