ion-item 'lines' attribute does nothing (docs incorrect?)
See original GitHub issueIonic version: (check one with “x”) (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [ ] 3.x [x] 4.x
I’m submitting a … (check one with “x”) [x] bug report [ ] feature request
Current behavior:
Please see forum conversation here.
Your documentation is incorrect. The documentation states that the lines
attribute must be placed on the ion-item
component. However, that didn’t work. Instead, the lines
attribute needs to be placed on the ion-list
component.
Expected behavior:
Hide lines when lines
attribute is supplied on the ion-item
component.
Steps to reproduce:
Related code: Forum link.
insert short code snippets here
Other information:
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
insert the output from ionic info here
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ion-item - Ionic Framework
An item is considered "clickable" if it has an href or button property set. Clickable items have a few visual differences that indicate...
Read more >ion-item - Ionic Documentation
An item is considered "clickable" if it has an href or button property set. Clickable items have a few visual differences that indicate...
Read more >Ion-item attributes in Beta 4
EDIT 2: I was looking at the GitHub Docs that noted there was a lines attribute with three possible values: full (default), inset...
Read more >ion-input: Custom Input Value Type Styling and CSS Properties
The error slot will not be displayed unless the ion-invalid class is added to the ion-item . In Angular, this is done automatically...
Read more >ion-item-options - Ionic Framework
The ionSwipe event and the expandable property can be combined to create a ... See the item sliding documentation for more information. ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s a bug because of the
ion-menu-toggle
wrapper. Because our CSS is targeting theitem:last-child
to apply a border on it, and it is wrapped in another element, it is always considered thelast-child
of that element so it is getting the border even withlines="none"
applied to the item. This is something we need to fix.@brandyscarney I’m not necessarily saying the documentation isn’t correct. As a matter of fact, the lab environment rendered correctly in Safari with the
lines="none"
on theion-item
element. However, the Ion DevApp still rendered the lines.The only way for the Ion DevApp to hide the lines was me applying the
lines
attribute to theion-list
.To refresh…
This did not work:
This did work:
Perhaps, it’s a bug in the Ion DevApp? Or, as you suggested, a CSS issue?
Thanks.