Input field underline missing when inside ion-card
See original GitHub issue**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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:22 (1 by maintainers)
Top Results From Across the Web
Input field underline missing when inside ion-card #11640
Ionic version: 3.2.1 **I'm submitting a Bug Report Current behavior: When I put an inside an The bottom border that acts as an...
Read more >Input - underline is not showing when field is not selected
Are there any quick way to display underline in input field not only on select, but all the time? [image][image]
Read more >Ionic: Remove line under a field - Stack Overflow
Ionic is making line below after each field I am creating. how can I remove this line? What this line thing “officially” called?...
Read more >sec_E_SB_ELA_G7.pdf - TN.gov
observe the small details within a text in order to arrive at a deeper understanding of the whole ... Underline key words that...
Read more >Computerized Patient Record System (CPRS) Technical Manual
Deletes the entry in the COLUMN WIDTH field of the listed protocols. ... Generic orders in CPRS can't use the same item within...
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 Free
Top 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
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; }