ionic-framework: Input field underline missing when inside ion-card
**Ionic version: 3.2.1
**I’m submitting a Bug Report
Current behavior:
When I put an <ion-input> inside an <ion-card> The bottom border that acts as an underline is being overwritten with some core css found here
when using the md or default modes.
.card-md .item-md.item-block .item-inner {
border: 0;
}
The password field has a border but only because it is also the last child of a list.

Code to produce:
<ion-card class="contentBox">
<ion-card-header>
<h3>Login</h3>
</ion-card-header>
<ion-card-content>
<ion-list>
<ion-item>
<ion-label floating>Email</ion-label>
<ion-input type="email"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Password</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
</ion-list>
</ion-card-content>
</ion-card> <!-- contentBox -->
Expected behavior: Should leave the underline intact Plunker: http://plnkr.co/edit/hSbLqd?p=preview
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 22 (1 by maintainers)
Commits related to this issue
- Fixes #11640 — committed to iget-master/ionic by iget-master 7 years ago
- ionic bug fix: ionic-team/ionic#11640 — committed to szamocza/jsonforms by deleted user 3 years ago
- ionic bug fix: ionic-team/ionic#11640 code cleaning — committed to szamocza/jsonforms by deleted user 3 years ago
- ionic bug fix: ionic-team/ionic#11640 code cleaning — committed to szamocza/jsonforms by deleted user 3 years ago
- ionic bug fix: ionic-team/ionic#11640 — committed to szamocza/jsonforms by deleted user 3 years ago
While ionic-team doesn’t fix it, the following rules could be added to your app.scss to fix it:
This worked for me. I just placed it in my page’s scss file:
.card-md .item-inner { border-bottom: 1px solid #dedede !important; }With @reyco1 solution did this to enable the bottom border on some inputs